运行项目时如何通过eclipse安装.apk文件
我是机器人测试的新手。
我想在运行项目时打开模拟器并安装 .apk 文件。
谁能告诉我如何在 Eclipse 中实现这个?
I am new to robotium testing.
I wanted to open the emaulator and install the .apk files while I run the project.
Can anyone please let me know, how to implement this in Eclipse?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
右键单击eclipse中的项目并选择Run As>安卓应用程序。
如果您已经设置了模拟器,那么它会要求您选择一个 AVD。否则,您将必须创建自己的 Android 虚拟设备
Right click on the project in eclipse and select Run As > Android Application.
If you have an emulator set up already, then it will ask you to select one of your AVD. Otherwise, you will have to create your own Android Virtual Device
打开您的 android 文件夹(D:\Apps\java\embd\mobiles\android\4.1\platform-tools) 并将 .apk 文件复制到该文件夹
打开 avd 管理器并创建 avd
打开命令提示符并导航到该文件夹并输入 adb install filename.apk 这会将 .apk 文件安装到模拟器上,
如果您想卸载任何 .apk 文件,只需输入 adb uninstall文件名.apk
Open your android folder(D:\Apps\java\embd\mobiles\android\4.1\platform-tools) and copy .apk file to the folder
open the avd manager and create avd
open command prompt and navigate to the folder and type as adb install filename.apk this will install the .apk files on to the emulator
if u want to unistall any .apk file just type as adb uninstall filename.apk