How to install an APK file in the Android emulator?
来源:互联网 发布:英文小说网站 知乎 编辑:程序博客网 时间:2024/05/21 06:40
Q:
I finally managed to obfuscate my Android application, now I want to test it by installing the APK file and running it on the emulator.
How can I install an APK file on the Android Emulator?
A:
Windows:
- Execute the emulator (SDK Manager.exe->Tools->Manage AVDs...->New then Start)
- Start the console (Windows XP), Run -> type cmd, and move to theplatform-tools folder of SDK directory.
- Paste the APK file in the 'android-sdk\tools' or 'platform-tools' folder.
Then type the following command.
adb install [.apk path]
Example:
adb install C:\Users\Name\MyProject\build\Jorgesys.apk
Linux:
In Linux the adb file is found in platform-tools directory under the SDK root directory
Mac:
PATH=$PATH:"adb location"
Example : PATH=$PATH:/users/jorgesys/eclipse/android-sdk-mac_64/tools
Then run adb.
From:http://stackoverflow.com/questions/3480201/how-do-you-install-an-apk-file-in-the-android-emulator
0 0
- How to install an APK file in the Android emulator?
- How to install Android SDK and play with Android 2.0 in the emulator
- how to run an android emulator in ubuntu 14.04
- How to choose an in-circuit emulator
- Android Tricks: How to Decompile an Apk file
- How to new an emulator for Android?
- How to store an image file to SQliteDB in android
- How to store an image file to SQliteDB in android
- Android - How to mount NFS in emulator
- how to install file/software in linux?
- [Android] Failed to install AndroidTest.apk on device 'emulator-5554!
- Android之Failed to install *.apk on device 'emulator-5554!
- Android - how to install a new version of the apk 如何安装apk新版本
- How to install VIM in the MSYS?
- How to install live555 in the MSYS?
- android Failed to install *.apk on device 'emulator-5554' timeout 或者 the user data image is used解决办法
- How to install an SSH Server in Windows Server 2008
- How to install an SSH Server in Windows Server 2008
- javascript Date对象
- Gradle 1.12 翻译——第九章 Groovy快速入门
- 关于二分图的整理
- 4096!——化简的2048游戏(着实霸气的思路,收藏好)
- Android new Message()和Message.obtainMessage的区别
- How to install an APK file in the Android emulator?
- 基于TCP网络应用的入门小程序
- 黑马程序员——JAVA——集合框架2
- 第十一周项目六(二):判断参数是否是回文数
- eclipse设置和优化
- iOS UIImage 加载
- RISC诞生与发展的缩影
- S5PV210开发板 摄像头ov3640 fimc驱动分析 :fimc_capture.c 分析
- Android 读取工程中raw文件夹(读取文本等)