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.
source to share
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.
source to share