在android模拟器上运行apk [英] Run apk on android emulator

查看:181
本文介绍了在android模拟器上运行apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 将apk复制到platform-tools目录

  2. 以管理员身份运行cmd.exe

  3. 导航到platform-tools目录

  4. 从AVD管理器运行模拟器

  5. 在命令行中输入adb设备(它在列表中显示我的模拟器)

  6. 我在命令行中输入了adb insall name.apk,之后我收到以下消息:



我发现这个链接如何在模拟器上运行APK。其他教程也显示了它的工作原理。如果我们在几秒钟后进入adb安装命令行显示Success消息,但在我的情况下,命令行显示此日志。

解决方案

假设您已经有模拟器运行,请按照下列步骤操作:




  • 在您的Android SDK中找到您的 adb.exe 文件。在Windows
    环境中,通常您的 adb.exe
    [Android-SDK-folder] / platform-tools / 。在我的情况下, adb.exe
    C:\android-juno\android-sdk\platform-tools

  • 将其放在您的 [Android-SDK文件夹] / platform-tools / 中,如下图所示:




  • 现在运行adb.exe通过命令提示符。

  • 在命令行中,进入platform-tools文件夹。执行命令:



    adb安装Peribahasa.apk



    稍后您刚安装的应用程序将在模拟器中。



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.

解决方案

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.

这篇关于在android模拟器上运行apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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