Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App hang on install in Android Studio

Usually I build an app in Android Studio to test an app on Phone. But this occurs when I just click the Run app

Waiting for device.
Target device: motorola-nexus_6-ZX1G227B86
Uploading file
    local path: F:\HeadFirstAndroid\MateClient\app\build\outputs\apk\app-debug.apk
    remote path: /data/local/tmp/com.diyu.org.mateclient
Installing com.diyu.org.mateclient
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.diyu.org.mateclient"

It seems that the process is stuck on the pm install and no app is installed on my phone. What's the issue?

And other projects acts the same, hang on the install.

like image 517
chrisTina Avatar asked Nov 27 '22 16:11

chrisTina


1 Answers

I fixed this issue by going to Settings on the device -> Developer Options -> uncheck "Allow USB debugging' -> Recheck box. And next time, the software started correctly.

like image 154
Kristy Welsh Avatar answered Dec 15 '22 17:12

Kristy Welsh