Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

41,806

Solution 1

It got resolved by having android:installLocation="preferExternal" for <manifest> tag of manifest file.

Like below:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="bros.imaq.demilic"
    android:versionCode="1"
    android:versionName="1.0"
    android:installLocation="preferExternal">

Thank you

Solution 2

You need to do two things after which this error will be resolved.

  1. In your AndroidManifest.xml file add android:installLocation="preferExternal" within your manifest tag.

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.packagename.appname"
    android:versionCode="1"
    android:versionName="1.0" 
    android:installLocation="preferExternal">
    
  2. More importantly, clear the cache data in your device. Goto settings -> storage -> click on cached data. This will clear the cache and free the space.

  3. Reconnect your device, clean your project and again run it on the device. The project will now run on your device.

Solution 3

In my case the solution using the manifest tag didn't work, as there was no Android resource for that tag.

What did work was simply uninstalling the app on the phone. And the few other versions I had installed simultaneously.

Solution 4

fixed my issue. problem was that i had set the set the install location via adb on my rooted KitKat 4.4.2 phone at one time, to put my apps on an SD Card:

adb shell
pm set-install-location 2

Said card was cheap and failed. even if i set the default location to the internal SD card, even if i removed the "damaged" (cheap and useless) SD card, i could now install no apps... but all is well now, the solution was to run

pm set-install-location 2

Solution 5

I tried many things from this thread and many others but in my case nothing would fix it'd keep popping with that message , for me what it did it was go to Applications>Google Play Services and clear the data there.

I'm at GooglePlayServices 7.3.29 and was debugging on this old Galaxy S1

Share:
41,806
Venkat Papana
Author by

Venkat Papana

Updated on August 26, 2021

Comments

  • Venkat Papana
    Venkat Papana almost 3 years

    I'm getting "Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE" error while installing the application on my device today. It is working fine till yesterday, today only im facing this problem. I have deleted some files on my SD card, but still facing the issue. I'm sure it is not the issue with the space on SD card. Can anybody suggest how to resolve this.

    --nehatha