Android Studio Stuck on “Installing APK”

2020-02-17 08:45发布

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. There are no errors, the apk successfully installs and opens, it's just the IDE is still showing "Installing APK" and it does not automatically connect the debugger. I can manually connect the debugger using the "Attach debugger to Android process button", but this is not ideal.

Can anyone offer any suggestions for what's up and how to resolve it?

18条回答
欢心
2楼-- · 2020-02-17 08:58

I tried rebooting my phone and it worked.

查看更多
Fickle 薄情
3楼-- · 2020-02-17 09:02

Recently, I was facing the same issue when I have updated My Device (MI A1) OS from Android Oreo(8.0) to Android Pie(9.0),

Solution: Go to the Settings > Developer options > Now click on > Revoke USB debugging authorisations.

It will disable/remove developer options from your device, Now restart your device once and then you just need to re-enable your developer options and that all you need to do, Enjoy Developing on Pie.

Hope this will help you as well.. :)

查看更多
不美不萌又怎样
4楼-- · 2020-02-17 09:06

It doesn't hurt to verify your USB port. In my case it was the faulty USB port which I had to switch to the mobo's one instead of the case port.

查看更多
【Aperson】
5楼-- · 2020-02-17 09:06

In my case, Second Space was created but not switched on. I had to delete the second space and everything worked just fine.

My settings are:

  • Usb debugging -> ON
  • Install via Usb -> ON
  • Verify over USB -> ON
  • Wait for debugger -> ON

Device: Redmi Note 5 Pro

查看更多
爷、活的狠高调
6楼-- · 2020-02-17 09:11

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!

查看更多
再贱就再见
7楼-- · 2020-02-17 09:14

My case was similar but for Android Version 10 required having the Verify bytecode of debuggable apps to off.

Final settings were:

  • USB debugging -> ON
  • Wait for debugger -> ON
  • Verify apps over USB -> ON
  • Verify bytecode of debuggable apps -> OFF

Device: Pixel XL

查看更多
登录 后发表回答