运行项目时如何通过eclipse安装.apk文件

发布于 2024-12-14 19:42:15 字数 84 浏览 3 评论 0原文

我是机器人测试的新手。

我想在运行项目时打开模拟器并安装 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凡尘雨 2024-12-21 19:42:15

右键单击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

对你再特殊 2024-12-21 19:42:15

打开您的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文