Android Studio [Install_Failed_Insufficient_Storage]

Anon Ymous picture Anon Ymous · Sep 10, 2016 · Viewed 16.4k times · Source

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?

Answer

Armando Ballaci picture Armando Ballaci · Oct 3, 2019

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