Search code examples
androidandroid-studioadbstoragefailed-installation

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?


Solution

  • How much storage do you have free? The system won't let the free storage space go below 200-300MB. Also, please don't end your package name with a dot(this may be the issue, but the error message suggests otherwise)