Search code examples
androidandroid-emulatorhaxm

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>


Solution

  • 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