No accelerator found - failed to create HAX VM
I am unable to launch any emulators on Android Studio. When trying to launch an emulator, I get the following error:
Failed to create vm ffffffff
Failed to create HAX VM
No accelerator found.
failed to initialize HAX: Invalid argument
Hax is enabled
Hax ram_size 0x80000000`
I have uninstalled Intel HAXM, installed it again, restarted Android studio, tried different system images, and tweaked heap space for the emulator. I have tried different device images, different API levels, and have tried switching emulated performance from auto to both hardware and software to no avail. Nothing I have tried has worked. Here are my emulator's details:
Name: Nexus_6P_API_23
CPU/ABI: Google APIs Intel Atom (x86)
Path: /Users/mobile/.android/avd/Nexus_6P_API_23.avd
Target: google_apis [Google APIs] (API level 23)
Skin: nexus_6p
SD Card: /Users/mobile/.android/avd/Nexus_6P_API_23.avd/sdcard.img
hw.lcd.density: 560
hw.dPad: no
avd.ini.encoding: UTF-8
hw.camera.back: none
disk.dataPartition.size: 800M
hw.gpu.enabled: yes
runtime.network.latency: none
hw.keyboard: yes
runtime.network.speed: full
hw.device.hash2: MD5:9b564b60b1aebee32c73ded9daa1e620
hw.ramSize: 2048
tag.id: google_apis
tag.display: Google APIs
hw.sdCard: yes
hw.device.manufacturer: Google
hw.mainKeys: no
hw.accelerometer: yes
hw.trackBall: no
hw.device.name: Nexus 6P
hw.sensors.proximity: yes
hw.gpu.mode: auto
hw.battery: yes
AvdId: Nexus_6P_API_23
image.sysdir.1: system-images/android-23/google_apis/x86/
hw.sensors.orientation: yes
hw.audioInput: yes
hw.camera.front: none
hw.gps: yes
avd.ini.displayname: Nexus 6P API 23
vm.heapSize: 1028
image.androidVersion.api: 23
runtime.scalefactor: auto
Following instructions from Intel's docs, I ran the command kextstat | grep intel
to verify the HAXM installation and got the following return:
154 0 0xffffff7f82ae4000 0x14000 0x14000 com.intel.kext.intelhaxm (6.0.3) <7 5 4 3 1>
Try installing or updating Intel Emulator Accelerator (HAXM installer)
from SDK Manager
and also check if Intel VT-x
is enabled in your BIOS
settings
For those who installed Android Studio without HAXM built in. You need to install HAXM manually after you install it from sdk manager(actually the SDK manager just downloaded it).
Quote from here: https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x
The SDK Manager will download the installer to the "extras" directory, under the main SDK directory. Even though the SDK manager says "Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the "extras" directory to finish installation.
So here is what you need to do:
Download HAXM installer from
SDK Manager->Android SDK->SDK Tools->HAXM installer
Open
<SDK_SRC>/extras/intel/Hardware_Accelerated_Execution_Manager/
and click the .dmg file to start install.
After installed manually, it's better to restart your PC.
Try to uninstall "Intel x86 Emulator Accelerator (HAXM installer)" from Android SDK manager, than install it again. That helped for me.
VT-x is enabled by default in all Macs these days.
If you are running Parallels at the same time this will cause the above error. I'm suspect it worked when you rebooted due to Parallels not being run in the background.