Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation errors: INSTALL_FAILED_INSUFFICIENT_STORAGE

I tried many methods to fix Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE but until now, I can increase my intern storage memory.

The method I tried:

  1. Right click the root of your Android Project, go to "Run As" then go to "Run Configurations..." locate the "Android Application" node in the tree at the left, then select your project and go to the "Target" tab on the right side of the window look down for the "Additional Emulator Command Line Options" field (sometimes you'll need to make the window larger) and finally paste "-partition-size 1024" there. Click Apply and then Run to use your emulator.

  2. Go to Eclipse's Preferences, then Select “Launch” Add “-partition-size 1024” on the “Default emulator option” field, then click “Apply” and use your emulator as usual.

  3. Open your .Android directory. Usually in your home directory. Then go to avd and then open the directory that has the name of the avd you would like to change.

  4. Now edit the config.ini file and add the following line or modify the following line: disk.dataPartition.size=1024

This all worked for me in Linux.

I used my app to store in external storage by using this:

android:installLocation="preferExternal" 

but then I received

Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

like image 675
Jagan Avatar asked Jul 05 '12 10:07

Jagan


People also ask

How do I increase my emulator storage?

On Android StudioOpen the AVD Manager. Click Edit Icon to edit the AVD. Click Show Advanced settings. Change the Internal Storage, Ram, SD Card size as necessary.

How do I turn off Android emulator?

Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.


1 Answers

Error

Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

means that your device does not have SD card.

Error

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

means that you don't have enough space on device for your app.

You should do next:

  1. Write android:installLocation="auto" and android itself will care where to install your app - internal or external memory.
  2. Be sure that device has enough memory for installing (usually it is more then size of apk).
  3. If your app really need much space - read this guide.
  4. If you use emulator - setup sd card support: enter image description here
like image 150
Jin35 Avatar answered Sep 27 '22 18:09

Jin35