I have been having issues running my first android app. Yesterday, i came close to running it but my happiness was dashed when i encountered this error:
emul
After many attempts to fix, I found the following most helpful: Android: failed to allocate memory Running the emulator with 512mb of ram or less seems to be the only solution so far for me. Thanks
Here's how to fix it and keep your desired amount of RAM:
ORIGINAL: disk.dataPartition.size=512M
MODIFIED: disk.dataPartition.size=512MB
ORIGINAL: hw.ramSize=1024
MODIFIED: hw.ramSize=1024MB
Save the file, and then run the emulator again (e.g. "emulator.exe -avd phone"). You must repeat this process for each of your AVDs.
Also worth checking that HAXM is installed/enabled (this fixed issue for me, without it got same error as you were reporting and it slowed my Mac to a crawl).
My case was that the skin setting somehow had been changed from WVGA800 to WVGA854 in AVD. After I switch it back, the emulator works.
In my case, I had to set memory RAM from 1907 (default) to 512 to get it working