Unable to install Android APK from ADB on Xaomi Redmi Note 4

I am using Redmi Note 4 and trying to install Apk via Android Studio and get an error when starting the app

DELETE_FAILED_INTERNAL_ERROR
Error while Installing APKs

      

I have already granted all the necessary permissions such as installing via USB.

+3


source to share


4 answers


This is because of the instant start.

If you are using a MIUI device, Developer Option

Turn on MIUI optimization

and disable it ...



Reboot your device and recompile the code. Constantly running will work again !!!

+16


source


I had the same problem on Redmi note 3. It was solved by disabling instant launch in Android studio.



+2


source


If you are using a device with MIUI, you need to do:

  • Additional Settings -> Developer Options -> Enable MIUI Optimization - Disable this option.

  • Also, advanced settings -> Developer options -> Install via USB: enable this option

Reboot your device and recompile the code.

+2


source


This issue occurred mainly on Android Studios version 2.3 or higher due to the Instant Run functionality of that version.

The MIUI optimization creates problems in the case of non-MIUI apps like Google Apps and Apps from Google Playstore. Therefore, it is best to disable it if you rely on such Apps.

Reason: . Using Instant Launch, we push certain code and resource changes to our running app without creating a new APK. Therefore, it also conflicts with MIUI optimizations.

=> To disable MIUI optimization follow the instructions below:

1) Setting> Additional settings> Developer options.

2) Below is the option Enable MIUI optimization .

3) Disable MIUI Optimization> Click Disable and Restart.

0


source







All Articles