I am creating an Android application.
My Application has audio and png files which i have saved in res/drawable folder.
When I run the app , its giving error
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
and in the logcat it says -
ERROR/PackageManager(54): Couldn't copy package file to temp file.
I tried creating new avd also.But i am getting the same error.
I want all those png and audio files.
I don't want to store them in sdcard.
As mentioned in this thread the problem can be solved by increasing the size for your system/data partition. Just add the following parameters to your emulator command line:
-partition-size 2047
2047 is the maximum allowed partition size. Use a smaller value if you want to limit the partition size in order to save disk space.
To increase the internal storage of the Android emulator do this: go to AVD Manager,select the Android Virtual Device you want to modify, Edit. On Hardware section check if 'Ideal size of data partition' property is present. If not click New and add it. Edit it's value to 512MB or 1024MB as you wish. (it's important to put 512MB not only 512 otherwise it's value will reset to 0). Now save the changes and launch again the app.
PS. You can also check the .android/avd/[avd_name].avd/config.ini file and check for disk.dataPartition.size=512MB or your desired value. The steps mentioned above will update the disk.dataPartition.size property in config.ini automatically. I also tried just to edit myself the config.ini but doing just that didn't work for me.
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