简体   繁体   English

如何将**。apk安装到Android模拟器?

[英]How to install **.apk to android emulator?

I am using gradle installDebug command to install apk on a emulator. 我正在使用gradle installDebug命令在模拟器上安装apk。 I can see the output from the command saying: "Installing APK 'app-debug.apk' on 'Nexus_5_API_22(AVD) - 5.1'". 我可以看到以下命令的输出:“在'Nexus_5_API_22(AVD)-5.1'上安装APK'app-debug.apk'”。 But I couldn't find the app on my emulator. 但是我无法在模拟器上找到该应用程序。 Then I tried to use adb install command to install the apk. 然后,我尝试使用adb install命令安装apk。 It showed as below: 显示如下:

2229 KB/s (1093808 bytes in 0.479s) pkg: /data/local/tmp/app-debug.apk Success 2229 KB / s(1093808字节,0.479s)pkg:/data/local/tmp/app-debug.apk成功

The command run successfully but I still couldn't find it on my emulator. 该命令成功运行,但是我仍然无法在模拟器上找到它。 Does anyone know how to find the install apk on the emulator? 有谁知道如何在模拟器上找到安装apk?

Now with Android Studio 2.2 you just have to drag your app to the emulator. 现在,使用Android Studio 2.2,您只需要将您的应用拖到仿真器中即可。 After some seconds the app will be installed 几秒钟后,该应用将被安装

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM