5

I get an Out of space error when i try to install my app on the android 4.0 emulator. It gives me a message asking me to cleanup the space. When i go to internal storage I see 12 MB free which more that enough for my app.

To be safe, is there a way i can increase the Internal Storage of the Emulator

Avinash
  • 839
  • 1
  • 10
  • 17

3 Answers3

8

Create an AVD (example: "android4") In Eclipse with the Android Virtual Device Manager

go to a terminal

cd [android directory]/tools/

linux terminal: ./emulator -avd android4 -partition-size 512 &

windows : emulator -avd android4 -partition-size 512

Then install your app in this emulator

alejandrocordon
  • 356
  • 2
  • 11
4

append -partition-size 512 to the emulator options

if it didn't work create a new Device

Ahmed Salem
  • 3,947
  • 1
  • 21
  • 40
  • I too get the same error. I even tried increasing the SD card to 2GB without much success. @Avinash, did you find any solution to this? http://stackoverflow.com/questions/7837122/java-lang-outofmemoryerror-on-android-4-0-api-14 – Ahmed Faisal Oct 20 '11 at 14:56
  • +1 for this sentence: "if it didn't work create a new Device". I found many solution but create a new device solve my problem. Thank you very much. – PhatHV Mar 27 '12 at 10:10
1

Also try increasing the heap size to something like 64MB. This solved the issue for me.

enter image description here

Dzhuneyt
  • 8,437
  • 14
  • 64
  • 118