Search code examples
androidandroid-activityhaxm

HAXM configuration in android studio


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:

HAXM is not working and emulator runs in emulation mode

emulator The memory needed by this AVD exceeds the max specified in your HAXM configuration.

emulator: AVD RAM size = 1536 MB

emulator: HAXM max RAM size = 768 MB

emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.

emulator: warning: opening audio output failed creating window 61 83 462 820

emulator: emulator window was out of view and was recentered

What is wrong?


Solution

  • 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.