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

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

问题描述

我想在 android 模拟器上运行 APK,我按照以下步骤操作:

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

  1. 将 apk 复制到平台工具目录
  2. 以管理员身份运行 cmd.exe
  3. 导航到平台工具目录
  4. 从 AVD 管理器运行模拟器
  5. 在命令行中输入 adb devices(它在列表中显示了我的模拟器)
  6. 我在命令行中输入 adb insall name.apk 之后我收到如下消息:

我找到了这个链接 如何在模拟器上运行 APK.其他教程也展示了它是如何工作的.如果我们在几秒钟后进入 adb install 命令行显示成功消息,但在我的情况下命令行显示此日志.

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.

推荐答案

假设您已经运行了 Emulator,请执行以下步骤:

Assuming you already have the Emulator running follow these steps:

  • 在您的 Android SDK 文件夹中找到您的 adb.exe 文件.在 Windows 中环境通常你的 adb.exe 在里面[Android-SDK-文件夹]/platform-tools/.就我而言,adb.exe 位于C:\android-juno\android-sdk\platform-tools.
  • 将其放入您的 [Android-SDK-folder]/platform-tools/,如下图所示:

  • 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:

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

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.

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

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