Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio [Install_Failed_Insufficient_Storage]

I have a problem with installing an apk of my app on my phone from Android Studio. Every time i tried i got this error message:

09/10 22:40:00: Launching app
$ adb push C:\Users\pokef\AndroidStudioProjects\Runescape\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.myapps.myproductions.rsstats.
$ adb shell pm install -r "/data/local/tmp/com.myapps.myproductions.rsstats."
pkg: /data/local/com.myapps.myproductions.rsstats.
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]


$ adb shell pm uninstall com.myapps.myproductions.rsstats.
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK

I know there are a lot of threads out there talking about this problem, but Ive already tried everything. Im certain i have enough storage, i cleared all caches, i uninstalled all previous versions, i changed the manifest to "android:installLocation="preferExternal" , i restarted my phone etc, so please dont mark this as a duplicate.

This problem only happens since i changed the package path from com.example.myapp etc. to com.myapps.myproductions.rsstats. Im sure that I correctly adapted all paths in the files to this location. What else could I try?

like image 594
Anon Ymous Avatar asked Sep 10 '16 20:09

Anon Ymous


1 Answers

This happens when you have installed many versions of different apps on the virtual device.
Just stop the device. Open AVD Manager and right click on the device > Wipe Data.
like in the pic.
enter image description here

like image 100
Armando Ballaci Avatar answered Sep 27 '22 18:09

Armando Ballaci