user6542934
user6542934

Reputation:

Android Studio Emulator Error (Intel HAXM is Required / No Emulator Installed)

I just updated my Android API to 25, and my emulators have since stopped working. When I try to run my emulator, it gives me the error "Intel HAXM is required to run this AVD. No emulator installed. Please Download the emulator" as a popup (shown below) and the Event Log prints out "Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)".

What I am confused about is that I have turned off Instant Run via settings and I have downloaded the Intel x86 Emulator in SDK Tools.

Error: enter image description here

SDK Manager: enter image description here

Instant Run: enter image description here

Upvotes: 3

Views: 23652

Answers (4)

Parrhesia Joe
Parrhesia Joe

Reputation: 1377

For me, the problem was that Hyper-V was not uninstalled even when I removed it from installed windows components. I got this from: https://github.com/intel/haxm/blob/master/docs/manual-windows.md

Certain advanced Windows 10 features, such as Device Guard (in particular, Hypervisor-protected code integrity or HVCI) and Credential Guard, can prevent Hyper-V from being completely disabled. In other words, when any of these features are enabled, so is Hyper-V, even though Windows may report otherwise.

Helpfully, it says how to solve it, and it worked for me after two days of frustration:

The Device Guard and Credential Guard hardware readiness tool released by Microsoft can disable the said Windows 10 features along with Hyper-V:

  1. Download the latest version of the tool from here. The following steps assume version 3.6.
  2. Unzip.
  3. Open an elevated (i.e. Run as administrator) Command Prompt.
  4. @powershell -ExecutionPolicy RemoteSigned -Command "X:\path\to\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable"
  5. Reboot.

This disables Device Guard and Credential Guard and allows HAXM to get control of virtualization. After the reboot, HAXM should install from the Android SDK manager without issue. Good luck.

Upvotes: 0

Ketan Ramani
Ketan Ramani

Reputation: 5813

The only solution works for me is...

  1. Goto your SDK folder location and delete "emulator" and "system-images" folder.
  2. Open android studio -> Tools -> Android -> SDK Manager
  3. Switch to SDK Tools tab check Intel x86 Emulator Accelerator (HAXM installer) click OK
  4. After successfully installing HAXM goto Android Studio -> Tools -> Android -> AVD Manager Delete all previous emulators and create new AVD.

Upvotes: 1

hizzenfizzle
hizzenfizzle

Reputation: 108

The SDK manager only downloads the Intel HAXM installer, but does not do the actual application installation in many cases.

Go to {SDK location}/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/ and run the MSI installer from there.

Additionally you have to enable VTX extensions in your BIOS on the computer.

Upvotes: 7

MIkka Marmik
MIkka Marmik

Reputation: 1102

Install this and try to run again.

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 0

Related Questions