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:
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.
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.
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.
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
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.
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.
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:
android:installLocation="auto"
and android itself will care where to install your app - internal or external memory.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With