Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator won't start on Mac OS 10.13

I just installed Android Studio 3.0.1 on my Mac with OS 10.13.2 but the emulator doesn't start. All I see is some errors in the event log:

Emulator: Failed to open vm 4

Emulator: Failed to create HAX VM

Emulator: No accelerator found.

Emulator: failed to initialize HAX: Invalid argument

I know this question has been asked before, but none of the solutions work for me. Is there a work around for this problem? Or should I just wait for fix in Android Studio/HAXM/Hypervisor.Framework/Mac OS?

like image 641
Gert-Jan Avatar asked Dec 13 '17 11:12

Gert-Jan


People also ask

Why is my Android Emulator not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Do Android emulators work on Mac?

The Android Emulators for Windows or Mac systems allow you to run the Android applications on the Windows environment flawlessly. It happens without any platform compatibility issues.

How do I get my Android emulator to work?

Run your app on the emulatorIn the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run. The emulator might take a minute or so to launch for the first time, but subsequent launches will use a snapshot and should launch faster.


2 Answers

"Hakintosh" user here...

Had the same issue.

My solution was to turn on Inter Virtualisation Technology in Bios settings.

Hope it helps for someone!

like image 194
Peter B. Avatar answered Sep 18 '22 15:09

Peter B.


I had the same issue and fixed it following these steps:

In Android SDK Manager -> SDKTools uninstall the following:

Intel x86 Emulator Accelerator (HAXM installer)

Then download the HAXM installer and install it from here: HAXM Installer

Finally, open

~/Library/Android/sdk/emulator/lib/advancedFeatures.ini

and change the line 'HVF = off' to 'HVF = on'

like image 31
Vlad Avatar answered Sep 20 '22 15:09

Vlad