如何安装Android中工作室在模拟器上的apk? [英] How to install a apk on emulator in Android Studio?

查看:213
本文介绍了如何安装Android中工作室在模拟器上的apk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在模拟器中的Andr​​oid工作室安装APK。从终端????

How to install a apk on emulator in Android Studio. from terminal ????

像我们在Eclipse完成

as like we done in Eclipse

/home/pcname/android-sdks/platform-tools/adb -s emulator-5554 install /home/pcname/Downloads/apkname.apk

现在如何在Android的工作室?

now How in Android Studio ?

推荐答案

您可以安装的 .apk文件文件,仿真器,无论你使用的是(Eclipse或机器人工作室)的

You can install .apk files to emulator regardless of what you are using (Eclipse or Android Studio)

这里就是我总是这样:(有关完整的初学者)

here's what I always do: (For full beginners)

1 - 运行模拟器,并等待,直到它完全启动。

1- Run the emulator, and wait until it's completely started.

2 - 转到您的 SDK 安装文件夹,然后转到平台工具(您应该看到一个可执行文件名为 adb.exe

2- Go to your sdk installation folder then go to platform-tools (you should see an executable called adb.exe)

3创建一个新的文件,并调用它的的run.bat ,编辑用记事本文件,写的 CMD 它并保存。

3- create a new file and call it run.bat, edit the file with notepad and write CMD in it and save it.

4-所需的apk文件复制到同一文件夹

4- copy your desired apk to the same folder

5,现在开放的run.bat,写的 亚行安装your_apk_file.apk

5- now open run.bat and write adb install "your_apk_file.apk"

6等到安装完成

7瞧你的apk安装到你的模拟器。

7- voila your apk is installed to your emulator.

注意:可重新安装应用程序,如果它已经existe使用 ADB安装-ryour_apk_file.apk

Note: to re-install the application if it already existe use adb install -r "your_apk_file.apk"

遗憾的详细说明,因为我说的全初学者

sorry for the detailed instruction as I said for full beginners

希望这有助于。

问候,

塔里克

这篇关于如何安装Android中工作室在模拟器上的apk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆