简体   繁体   English

Android studio:安装apk时出错

[英]Android studio: Error while installing apk

这是我的问题的形象

When I launch my virtual device ,it launches but my app doesn't show in AVD . 当我启动我的虚拟设备时,它会启动但我的应用程序不会显示在AVD I update all the plugins and platforms required..after some time android studio given this error as following : Error while installing apk. 我更新了所有需要的插件和平台。之后一段时间android studio给出了如下错误: Error while installing apk.

Please, solve my problem why this is happening, I'm suffering from 2 days.:( 请解决我的问题,为什么会发生这种情况,我要忍受2天。:(

Make sure your emulator up and running. 确保您的模拟器正常运行。

Also you can try running it on to your phone the process is simple, 您也可以尝试将其运行到手机上,过程很简单,

  1. Go to android setting=>About=>Click on build varian 7 times to become developer. 转到android setting=>About=>Click on build varian 7 times to become developer.

2.go to developer section and enable the debugging mode. 2.转到开发人员部分并启用调试模式。

3.now if you are on window pc you have to download google usb driver and for MAC you can directly connect and you are good to go. 3.如果你在Windows PC上,你必须下载google usb driver和MAC,你可以直接连接,你很高兴去。

Make sure that you should uninstall all the applications that were developed by you in the emulator. 确保您应卸载模拟器中由您开发的所有应用程序。 After uninstalling all the applications that were build by you in the emulator, then clean project, run it again.Let me know if this works out. 在模拟器中卸载由您构建的所有应用程序后,再清理项目,再次运行它。让我知道这是否成功。

Have you tried increasing the adb connection time out on the AVD ? 您是否尝试过在AVD上增加adb连接时间?

To test this, first launch the avd and make sure it is turned on and running. 要测试这一点,首先启动avd并确保它已打开并运行。 Then try to build your application and install the .apk onto the device. 然后尝试构建应用程序并将.apk安装到设备上。

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

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