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 09:20

Just reboot your phone (: It happens after update android version.

查看更多
小情绪 Triste *
3楼-- · 2020-02-17 09:21

I found a solution that works for me. In Developer Options turn off "Monitor apps installed by ADB".

screenshot

查看更多
对你真心纯属浪费
4楼-- · 2020-02-17 09:21

Restarting Android studio worked for me

查看更多
虎瘦雄心在
5楼-- · 2020-02-17 09:24

It turns out the problem wasn't with Android Studio, but with the device I was using for testing. I tried a different device and it behaved normally, progressing beyond "Installing APK" and stopping on breakpoints.

Somehow the "wait for debugger" setting in developer options on the problem device had switched to off. I switched this back on and now this device is behaving normally.

-Note that I had to choose an arbitrary debug app for the setting to become active. Once I'd set it on, I deselected the debug app and the setting remained on, as I left it. This was a HUAWEI P8 running android 6.0 API Level 23.

查看更多
【Aperson】
6楼-- · 2020-02-17 09:25

On my HTC One I unchecked “Verify apps over USB” in Settings -> Developer Options.

查看更多
走好不送
7楼-- · 2020-02-17 09:25

for me it was something magic I solve it by removing the USB from the Laptop and from mobile too(type-c cable) and

turning off the debugging mode and again turn it on

and then I connect it back to my Laptop and selected the same FILE TRANSFER MODE then run the app and it get installed to my device and work as expected Hope you will find Useful to

查看更多
登录 后发表回答