Application hangs when installed in Android Studio

I usually create an app in Android Studio

order to test the app on my phone. But this happens when I just pressRun 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"

      

The process seems to be stuck on pm install

and there is no app installed on my phone. What's the problem?

And other projects act the same way, hang on to the installation.

+3


source to share


10 replies


I fixed this issue by going to Settings on Device -> Developer Options -> uncheck "Allow USB Debugging" -> Update. And next time the software will start correctly.



+8


source


In my case, the problem with was . It gave up on any install or uninstall commands. You can easily check this with the adb adb install [your apk file]

command. If the command line is stuck too, it means it is not a "studio bug". In addition, it was returned for deletion Failure [DELETE_FAILED_INTERNAL_ERROR]

.

There must be something wrong in the installation state inside the android.



I was able to solve this problem by manually installing the app via the apk file that I went into my SD card. Then I used adb uninstall [my_package]

what led to Success

.

Finally, I was able to install the application from Studio as usual.

+3


source


In my case, only run

(Mac: ^ R, Windows: Shift + F10) solved the problem again.

+2


source


I am stuck with the installation. Rebooted the phone and it worked.

+2


source


I fix this problem by unplugging the phone and plugging it back in. If the issue persists, there might be something wrong with your driver / USB cable or ADB service.

+1


source


I think the problem is with your size Dex

, first remove your app from your project, then try to clean the project and run the project without photos

0


source


I fixed this issue by updating my OS to the latest Android

0


source


In my case, I checked the battery life (until it was over 15%) and I will restart my phone and Voila it works !!!

0


source


I fixed this issue by closing the project and reopening it. But I know this is not the only solution / may not always work.

File

> Close project

and then run the project again.

0


source


It might be a little late.

The only thing that resolved this for me was rebooting the device. After rebooting, the problem was on the LG G4c, and as soon as I restarted it everything became normal.

0


source







All Articles