Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APK Installation error in device

Getting error while installing apk via android studio.

Failure [INSTALL_FAILED_INTERNAL_ERROR]  DELETE_FAILED_INTERNAL_ERROR     Error while Installing APK 

i tried build:clean also restart device.. error not resolves.

like image 766
Learning Always Avatar asked Apr 29 '16 05:04

Learning Always


People also ask

Why is my APK installer not working?

Another common reason for the App not installed error could be that there is not enough free memory on your device's internal storage. Most users think that the size of the apk file is the actual size of the app. But this is not the case. Actually the apk file is a packaged version of the application itself.


2 Answers

Disabling Instant run fixed it for me

Go to Preferences>Builld,Execution, Deployment> Instant Run

Then unmark Enable instant Run to hot swap code ...

Sorce from the comments in here

And also don't forget to report the issue to google to be fixed faster.

like image 64
Mo Hajr Avatar answered Sep 23 '22 23:09

Mo Hajr


I have solved this problem by turning off MIUI optimization.

For this go to setting-> developerOptions-> MIUI Optiomization.

Update: Apart from above solution. If you are using Android studio version 3.0 or 3+ then we can not directly use the apk after running on the device from the build->output->apk folder.

instead we need to build apk as stated below.(this is not a signed apk)

go to Build -> Build Bundle(s) / APK(s) -> Build APK(s) then copy the apk from build -> output -> apk -> debug

and then you are good to go.

like image 42
Tara Avatar answered Sep 21 '22 23:09

Tara