The HAXM stands for Hardware Accelerated Execution Manager. It is a cross-platform hardware-assisted virtualization engine (hypervisor), The Android Emulator use HAXM in intel platforms to speedup & improve performance.
The Android Studio Installs Intel HAXM when you install Android Studio. But you may get the HAXM Installation Failed message because of the following reasons
The processor is not Intel-based
Unsupported OS
Hyper-V Manager must be disabled
Virtualization must be enabled in Bios ( VT-x )
The PC must support Virtualisation
Avast Antivirus may interfere with HAXM Installation
Intel HAXM cannot be used on systems without an Intel processor. Even if the processor is Intel, it still needs to have the support VT-x, EM64T, and Execute Disable Bit
For AMD Based PC, you can use the Hyper-V to run the Android Emulator
OS Not supported
Supported Windows OS is 7, 8, 8.1 & 10.
Supported macOS is 10.12, 10.13 & 10.14
Only 64 bit OS is supported.
Disable the Hyper-V Manager
Hyper-V is another Virtualisation technique just like Intel HAXM. You cannot use both at the same time. Hence, It is necessary to Disable Hyper-V. You can follow these steps to disable Hyper-V
1. Go to Control Panel -> Programs and Features -> Turn Windows features on or off
2. From the window disable Hyper-V options
3. Reboot your machine
If you have windows 10 features such as Device Guard and Credential Guard is enabled, it can prevent Hyper-V from being completely disabled.
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 Device Guard and Credential Guard hardware readiness tool.
2. Unzip
3. Open the Command Prompt using Run as administrator
@powershell -ExecutionPolicy RemoteSigned -Command
4. "X:\path\to\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable"
5. Reboot.
If virtualization is disabled in the BIOS, you need to enable it.
Turn off the PC and then turn it On. Press either F2 or DEL ( The key may differ in your PC) key to enter the BIOS at the startup. You will likely to see a message at the startup regarding the key to press to enter the BIOS
You may see the Virtualisation under any of the following menus.
Chipset
Northbridge
Advanced Chipset Control
Advanced CPU Configuration
The feature may go by the name
VT-x
VT-d (as in the above image)
Intel Virtualization Technology
Intel VT
Virtualization Extensions
Vanderpool
Your CPU may not support Virtualisation. You can refer to Does My Processor Support Intel® Virtualization Technology? article to check if your PC Supports Virtualisation
The Avast Antivirus interferes with the HAXM installation. It may also slow down the Android Emulator. The workaround is goto Avast Settings > Troubleshooting and uncheck “Use nested virtualization where available” option
There are two ways in which you can install Intel HAXM.
1. Using the Android SDK Manager
2. Direct Download & Install
Go to Android SDK Manager (Tools -> SDK Manager) and select SDK Tools. You will find the Intel x86 Emulator Accelerator HAXM installer listed here. Select it and click on OK.
The clicking OK button does not install the HAXM Always. But it will copy the downloaded files to the under the SDK Location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/
You can then click on the intelhaxm-android.exe to install as shown below
You can directly download the Installer from the link HAXM Releases
Once you unzip the file, you will find the intelhaxm-android.exe
Welcome to the Intel HAXM setup wizard
Click on Next to complete the installation.
Use the haxm_check.exe to check if VT is supported in your PC
Finally, you need to check if HAXM is installed and running. You can do it from the command prompt by using the command
sc query intelhaxm