Run apk on android emulator

蓝咒 提交于 2019-12-21 20:49:11

问题


I want to run APK on android emulator and I followed next steps:

  1. Copied apk to platform-tools directory
  2. Run cmd.exe as administrator
  3. Navigated to the platform-tools directory
  4. Run emulator from AVD manager
  5. In command line entered adb devices (it showed my emulator in list)
  6. I entered adb insall name.apk in command line after this I got message as below:

I found this link how to run APK on emulator. And other tutorial also show how it works. In case when we entered adb install after few seconds command line shows Success message but in my case command line shows this log.


回答1:


Assuming you already have the Emulator running follow these steps:

  • Locate your adb.exe file in your Android SDK folde.In Windows environment normally your adb.exe is inside [Android-SDK-folder]/platform-tools/. In my case, the adb.exe is in C:\android-juno\android-sdk\platform-tools.
  • Put it inside your [Android-SDK-folder]/platform-tools/ as bellow figure:

  • Now run the adb.exe through the command prompt.
  • In the command line, go inside the platform-tools folder.Execute command:

    adb install Peribahasa.apk

    Later, the apps you just install will be in the emulator.



来源:https://stackoverflow.com/questions/17371015/run-apk-on-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!