I\'m trying to create an emulator with 2047 mb ram. When I run it, I get this error:
[2011-02-22 14:24:14 - Emulator]
[2011-02-22 14:24:14 - Emulator] This a
I was also getting this error message after upgrading my Android ADK Tool to 20 (even though I have more than sufficient RAM). No changes made to the 'Device RAM size' property helped (whether higher or lower, or with "MB").
What did work for me is running the emulator at the command line and specifying the RAM amount there (less than the default in my case); for example:
emulator -memory 512 -avd my_avd
I had the same problem but then figured it out. The problem was in the amount of ram I had specified for the virtual machine, and it was 1024MB by default, now I changed it to 512MB and it works; though my pc has 8GB of RAM.
Edit the Device settings and change the RAM allocation to a lower number. If it was 1024 or More, reduce it to 512Mb or 256Mb. You can Change it in "Edit Android Virtual Device (AVD)" dialog's Hardware Section --> Device ram size
Add in Run Configurations window the parameter -memory 512
See screenshot for reference
Solution to running a faster emulator:
http://androiddevnotes.com/2011/03/08/1299521520000.html
Runs my game a lot faster, comparable to phone quality.
-- Update 08/24/12 --
I see that people still come here and comment on this answer, and I have done more research on this issue. I present to you the results of my findings.
NOTE: These tests were run on my computer, your computer may be different.
cat /proc/meminfo/
and note the MemTotal fieldcat /proc/meminfo/
and note the MemTotal fieldConclusion
Adding 'MB' as noted in some of the comments below may allow your device to be launched, however it doesn't actually have 2 GB of RAM. Even with a 4.1 Emulator, the RAM Size is at 512 MB.
Recommendation
Please use an actual device for testing.
I had to do this Go to "Tools -> Android -> AVD Manager -> Chose your device -> Edit -> Advanced Settings -> Change the RAM parameter to 512 Mb.