45

I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them:

./emulator @Nexus_5X_API_17

logs:

emulator: WARNING: encryption is off
Hax is enabled
Hax ram_size 0x60000000
Failed to open vm 3
Failed to create HAX VM
No accelerator found.
failed to initialize HAX: Invalid argument

And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs:

HAXM silent installation only supports macOS from 10.8 to 10.12 !

I don't know if it is related with this.

After that, I tried to install virtualBox to install genymotion, but I found when I clicks the virturalBox.dmg, the installer crashed.

Could you help me? thanks.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Changwei
  • 672
  • 1
  • 5
  • 16

7 Answers7

49

Use the new Hypervisor.Framework support instead of HAXM on macOS, as described in the comments of the issue filed for this:

Try running the emulator on Canary channel 26.1.x (API 25/26 recommended) with Hypervisor.Framework; put the text "HVF = on" in ~/.android/advancedFeatures.ini (create this file if it doesn't exist already).

Joppe Geluykens
  • 1,842
  • 14
  • 16
35

You can download and install the latest version haxm https://github.com/intel/haxm/releases/latest

Freeman.Wang
  • 359
  • 2
  • 5
  • 10
    Worked for me, though I needed a restart afterwards. – John Shammas Sep 18 '17 at 15:52
  • 1
    I followed the instructions on your link to install HAXM version 6.2.1 and this fixed the issue for me (but like @JohnShammas, I also had to restart my computer after the installation). – Jordan Oct 04 '17 at 03:24
  • 3
    HAXM will not install for MacOS 10.13 – Ken Roy Oct 05 '17 at 17:09
  • 2
    I have this issue in High Sierra but it is fixed in the latest version, currently 6.2.1 solved the issue to me. Make sure you got the right version running: kextstat | grep intel In my case it was fixed after the reboot.Good luck! – Wils Oct 30 '17 at 17:11
  • On macOS High Sierra 10.13.2 and Android Studio 3.0.1 - updating to HAXM 6.2.1 then a system restart fixed it for me. – h-bomb Dec 21 '17 at 06:59
22

Following steps worked for me:

  1. Uninstall HAXM from android studio SDK manager (Tools->Android->SDK Manager->SDK Tools then uninstall 'Intel x86 Emulator Accelerator (HAXM)' by unchecking it.
  2. Download the HAXM version 6.2.1 zip file from Intel site https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx
  3. Install the .dmg file
  4. Restart your computer
  5. Open your AVD having x86_64 image and it should work.
Debashis
  • 898
  • 8
  • 9
4

Go to your SDK installation directory, and manually run the HAXM installer. See step 4 on the page: https://developer.android.com/studio/run/emulator-acceleration.html#vm-mac

Technically HAXM is only officially supported up until MacOS 10.12 (Sierra) . Since MacOS 10.13 is still in beta, there may be a bug or incompatible API. If the wizard does no work, please file a bug here for the Android Emulator dev team to investigate further: https://source.android.com/source/report-bugs

Jamal Eason
  • 6,260
  • 2
  • 19
  • 15
  • this actually helped... it was installed but for some reason not started so emulator was auto closed just after start without any further info – Ewoks Jul 13 '17 at 08:08
4

Go to Tools->Android->SDK Manager, then in the SDK tools search for Intel x86 Emulator Accelerator (HAXM installer) and update to the latest version, restart and thats all!

1

On install/reinstall of HAXM you get:

HAXM silent installation only supports macOS from 10.8 to 10.12 !

From https://issuetracker.google.com/issues/62395878#comment44

in System Preferences > Security & Privacy > General, there was a message “System software from developer xxx was blocked from loading.” with an Allow button. Clicking the allow button enabled HAXM again

Morrison Chang
  • 11,691
  • 3
  • 41
  • 77
  • Also described here: https://developer.apple.com/library/content/technotes/tn2459/_index.html#//apple_ref/doc/uid/DTS40017658-CH1-TNTAG3 – Brian Dunn Nov 21 '17 at 23:51
0

I just redownloaded the simulator and it worked.

Sam Trent
  • 395
  • 3
  • 15