Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 803
Changwei Avatar asked Jun 29 '17 01:06

Changwei


People also ask

Why is my AVD Manager not working?

SDK Build Tools are not installed If it fails then you may have to install it again. You look at the build tab at the bottom of the screen, it will display the error message and option to install the Build tools. Install it and you should be able to see the AVD Manager. Another way is to go to the SDK Manager.


1 Answers

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

like image 180
Joppe Geluykens Avatar answered Sep 27 '22 21:09

Joppe Geluykens