问题
This is the error messages shown in Android Studio 1.4 console
emulator: WARNING: Increasing RAM size to 1GB
emulator: device fd:560
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 = 1024 MB
emulator: HAXM max RAM size = 969 MB
emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.
Cannot set up guest memory 'pc.ram': Invalid argument
回答1:
You should run HAXM installer from <android-sdk-location>/extras/intel/Hardware_Accelerated_Execution_Manager/
and during installation set amount of RAM available to HAXM to 1024 MB or more.
If there is not extras/intel
directory then launch Android SDK Manager, go to Extras
, select Intel x86 Emulator Accelerator (HAXM Installer)
and press Install
.
回答2:
It is the first time you try to open the emulator, in my experience why i receive that warning its because i saturate the memory with others app, make sure you close other instances and clear the memory.
Other thing you can try its in the menu of AVD Manager, in the advanced settings increase the memory RAM of the virtual device you have configured.
I hope this can help you.
来源:https://stackoverflow.com/questions/32973966/why-the-haxm-configuration-memory-is-too-low-969-mb-it-is-not-compatible-with