Changwei
Changwei

Reputation: 672

Can't launch AVD on macOS 10.13

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.

Upvotes: 45

Views: 30638

Answers (7)

Freeman.Wang
Freeman.Wang

Reputation: 359

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

Upvotes: 35

Sam Trent
Sam Trent

Reputation: 395

I just redownloaded the simulator and it worked.

Upvotes: 0

Juan Carlos Quispe
Juan Carlos Quispe

Reputation: 176

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!

Upvotes: 4

Debashis
Debashis

Reputation: 898

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.

Upvotes: 22

Morrison Chang
Morrison Chang

Reputation: 12121

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

Upvotes: 1

Joppe Geluykens
Joppe Geluykens

Reputation: 1862

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

Upvotes: 49

Jamal Eason
Jamal Eason

Reputation: 6588

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

Upvotes: 4

Related Questions