Android Studio Stuck on “Installing APK”

前端 未结 23 3145
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 06:13

Android Studio no longer seems to be detecting when an app has installed on a target device and opened. It gets stuck on \"Installing APK\" and the progress bar is empty. Th

相关标签:
23条回答
  • 2020-12-08 06:40

    I had the exact same problem.

    what's more, i can not adb shell and adb push files.

    I am running an Ubuntu 18.04 VM and test on xiaomi phone 8,9. The problem for me was the USB Compatibility setting for the VM was set to 2.0, it needs to be at least 3.0. To change the setting power down the VM and choose the "Edit virtual machine settings" in the VMPlayer startup menu. Then select the "USB Controller" device and change "USB Compatibility" to USB 3.0. Hope this can help u!

    0 讨论(0)
  • 2020-12-08 06:41

    When attach my mobile to my PC, the follow menu is showed. I Clicke on it.

    In the next section, I had changed from "USB connection" to "Transfer files"

    After that adb install works for me.

    0 讨论(0)
  • 2020-12-08 06:42

    Turn off Verify apps over USB and Verify bytecode for debuggable apps (might not be available for all devices) in your Developer settings menu. The install time will decrease drastically.

    0 讨论(0)
  • 2020-12-08 06:43

    Restarting Android studio worked for me

    0 讨论(0)
  • 2020-12-08 06:44

    I have this problem recently on my Pixel 2 testing device, latest factory image with Android Studio 3.4, on windows 10.

    I have tried all methods mentioned but none of them work. It cost me more than 6 hours to figure it out.

    My problem is the USB driver, I am not using the "perfect" USB driver. My driver works in most scenarios and commands but not in every scenario.

    You do not need Android Studio to dig into this problem, just using adb.

    Please try if you can install apk from adb using following command:

    adb install xxxx.apk
    

    If it stuck at "performing streamed install" but never finish, this is the problem.

    Please try push a big file(more than 5MB) to your device:

    adb push xxxx.apk /storage/emulated/0
    

    In my testing, it stuck at 13%, 16%, etc, but never go on. It seems cannot transfer large files. This is why the installation is pending in my case.

    I update the driver to another one, and the problem is fixed. Hope it can solve your problem, too.

    0 讨论(0)
  • 2020-12-08 06:45

    In my case i did not make sure that my android studio DSK manager was up to date with the android version that my device was operating on. So when running flutter doctor all seemed well, and i had the latest android version and all on android studio, but as mentioned it was not matching the version for my device i had connected.

    Once i added the correct android version (in my case android 6.0) with SDK manager using android studio, it did not get stuck at installing apk.

    0 讨论(0)
提交回复
热议问题