Android studio emulator fails to start with memory limit related error message
Try restarting your computer!
I was just wrestling with this problem and after an hour of scouring the web to no avail I tried restarting my computer and the problem was resolved.
After Android Studio is installed
In CMD (Run As Admin) execute this command (Emulator should be closed):
//if it's installed on D:, at first, "cd" to that drive, like "D:"
cd "%ANDROID_SDK_HOME%\sdk\extras\intel\Hardware_Accelerated_Execution_Manager"
silent_install.bat -m 1024
this will set HAXM memory to 1024Mb (max 1800). Set RAM parameter in VDM slightly below this value, like 980
If you are using Mac OS then use navigate to path /<USER_DIR>/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager
and execute sudo ./silent_install.sh -m 1024
- From Android studio open Windows->Select Android Virtual Device Manager->Chose your device->Click Edit button->Change the RAM parameter to 512 Mb in the Memory Options->Save and run the emulator it will work
- Else you may use Genymotion Android Vm: https://www.genymotion.com/?utm_source=dlvr.it&utm_medium=twitter#!/download