
Are you tired of getting this error?
This happens when you’re testing your App on your Android Emulator. After a couple runs, the virtual device runs out of space, and you have to start deleting apps…pretty annoying.
Well, it’s easy to fix. It’s just a matter or increasing the storage size of your virtual device. First off, you need to know the name of the virtual device you are using. Assuming you’re running on OSX, Go to your terminal and type:
$ [[path-to-android-sdk]]/tools/android avd
This will show you a window with all the AVDs (Android Virtual Devices) you have configured. Find the one you’re using and write down its name.
Next, go back to your terminal and type
$ open -a TextEdit ~/.android/avd/[[name of your avd]].avd/config.ini
This opens TextEdit with the AVD’s configuration file. Now look for and change or add this line
data.dataPartition.size=512m
And that’s it. You’re set!
Thanks a lot. Very helpful.
Boricuaaaa essssooo! Thanks for the tip, have run into this before… annoying to say the least. But no more!
Would be great if Appcelerator simply addressed the problem in tooling, per https://jira.appcelerator.org/browse/TIMOB-9859
I agree with A. User’s comment above. There is no reason not to have this handled with the CLI and wired to the GUI in Titanium Studio.
@Chaim and anyone else, please add yourself as watchers to https://jira.appcelerator.org/browse/TIMOB-9859.
This didnt work for me.
I still get the error. I didnt have the name in the first place so added it.
Not sure if Ive got an old SDK or something.
Didnt work for me either.
This did work:
Open AVD ($ [[path-to-android-sdk]]/tools/android avd)
click on the AVD, and click Edit.
In the section Hardware: click New and add ‘Ideal size of data partition’, it gets added to the list with a value of 0. Change it to 512MB or something else. If you don’t type MB, but for example 512m, it will change back to 0.
Save, now the line disk.dataPartition.size=512MB is added to the config file, so manually typing that might also work.
Yes, this works. As well as changing directly to hardware-emu.ini works as well. This parameter basically sits in this file.
Thank you Matijis. This also didn’t work for me but after doing what you said it worked.
thanks sir!
disk.dataPartition.size=512m is also working
Using OSX for developping Android app…
Dirty world