I tried to run a simple Android chat app from GitHub. I think there\'s a problem with my HAXM configuration. When I run the app I see these errors:
The memory needed by this AVD should not be exceeds the max specified in your HAXM configuration.
Go to ~\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager \intelhamx_android.exe
.
Reinstall intel HAXM and set its RAM to 1024MB.
Edit your AVD set its RAM to 768MB.
Build and run your application.
If you cant change the RAM via reinstalling it means you installed HAXM via Android Studios.
After re-installing HAXM with more (ideally more than 1536 MB) space solves the problem.
How to install HAXM for MAC - https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x
How to install HAXM for Windows - https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
your HAXM RAM is lower than your AVD RAM.
Solutions:
Reinstall HAXM with more RAM:
sudo $ANDROID_SDK/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh -u
sudo $ANDROID_SDK/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh -m 1024
Be sure when you increase your HAXM RAM configuration that your computer is able to handle this increased RAM. I use a 4GB RAM macbook pro that almost stopped responding after I increased HAXM RAM to 2GB. It may be a better option to decrease your AVD RAM.
You have to increase the amount of RAM memory in: Tools >> Android >> AVD manager
Select your AVD, press "Edit this AVD" and under Advanced settings set the amount of RAM to i.e. 1500Mb
That will do the trick