HAXM configuration in android studio

风格不统一 提交于 2019-11-29 01:23:04

your HAXM RAM is lower than your AVD RAM.

Solutions:

  1. Re-run you HAXM installation and increase RAM to match that of AVD(emulator).
  2. Alternatively, decrease RAM of AVD(emulator) to match that of HAXM.

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
Neil Deshmukh

The memory needed by this AVD should not be exceeds the max specified in your HAXM configuration.

  • It should be less than RAM set for HAMX.
  • 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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!