Debugging with Xiaomi mi5 MIUI 8 Android Studio
I am unable to launch the application from Android Studio. When I click "run" I select my device:
And the following message appears:
But this is not true, the application is not installed on the device. The following appears in the "run" console:
04/22 15:53:08: Launching app
$ adb install-multiple -r C:\Users\User\AndroidStudioProjects\some.apk
$ adb shell pm uninstall com.package.app
Unknown failure (Failure - not installed for 0)
Error while Installing APK
I have activated USB debugging on the device.
+3
source to share
2 answers
Try disabling "MIUI Optimization" from developer options . I upgraded to MIUI 8.2 and faced the same problem, found the solution here and it works. Good luck!
http://c.mi.com/thread-171377-1-0.html [Off-Topic] [Device Team] Fixed due to inability to debug Android application from Android Studio
+15
source to share