135

I installed Android Studio and I had no problems with that. However, when I tried to run the emulator, it said that Intel HAXM was not installed.

So I found the installer, ran it, and it even though it said my laptop supports it, that it was not enabled. I went, enabled the Intel Virtualization Technology (VT-x), but I still got the same message.

I hear something about Hyper-V needs to be disabled, but when I go to Turn Windows features on/off, I cannot find it on that list.

Can someone help me with this?

Alexander Trauzzi
  • 6,481
  • 10
  • 53
  • 93
Felipe
  • 4,326
  • 5
  • 15
  • 21
  • You need to install additional sdk images. See this thread: http://stackoverflow.com/questions/26355645/error-in-launching-avd – T D Nguyen Feb 09 '15 at 20:48
  • I am sorry, but I did not find anything that could help me there. – Felipe Feb 09 '15 at 22:54
  • Did you "installed" it from Android SDK Manager? – vilpe89 Apr 28 '16 at 07:25
  • After installation failed - go to the bottom right of android studio and select the event log - you will see details of the error, or look for the log file haxm_log.txt. Your computer may not support it. – Ohad Bitton Nov 09 '18 at 12:22
  • 2
    Before you rip your hair out and waste valuable time: Does not work with AMD processors!! https://stackoverflow.com/questions/25263360/intels-haxm-equivalent-for-amd-on-windows-os – Sean Anderson Nov 23 '18 at 22:12
  • I gave a solution to it for Mac in this question [Android Studio Intel HAXM installation failed](https://stackoverflow.com/questions/65458837/android-studio-intel-haxm-installation-failed/65492013#65492013). – Amisha Kirti Dec 29 '20 at 12:32

28 Answers28

186

Alright, so I did everything I could possibly find online, and nothing worked.

So I went to the Intel website, and I downloaded the HAXM installer that they provide (instead of using the one downloaded through Android Studio).

The installation actually went through with this installer and it was installed successfully. Then I open Android Studio, and the emulator finally loaded!

So, for anyone else having this problem, just download the installer directly from the Intel website.

Here's the link:

https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

S.S. Anne
  • 13,819
  • 7
  • 31
  • 62
Felipe
  • 4,326
  • 5
  • 15
  • 21
  • 8
    I tried using the installer and it said `Intel Virtualization Technology (VT-x) is not turned on. HAXM cannot be installed until VT-x is enabled.`. I had to go into my BIOS and enable the Virtualization Technology and then I was able to get it installed. – deadlydog Jan 01 '18 at 20:48
  • Sorry for the disturbing you @Felipe Please help me out for this solution https://stackoverflow.com/questions/50812600/haxm-error-in-android-studio-3-0-with-windows-requires-a-digitally-signed-driver – Ali Jun 14 '18 at 12:21
  • 2
    Mine didn't work as well, but i was having an emulator open when trying to install it. I closed it and then it worked. – AndreiBogdan Jan 22 '19 at 17:36
  • Android Studio 3.4 suggest this link: https://software.intel.com/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x which 404s -- so anyone googling that link it will be brought here to the correct one. – Sean Dev Jul 26 '19 at 14:47
  • Just to update, the link redirects to https://github.com/intel/haxm , so updated binaries could be downloaded from https://github.com/intel/haxm/releases/latest – MohK Aug 28 '19 at 06:01
  • also remember to stop your antivirus before you start your installation. – Abdul Wahid Sep 24 '19 at 14:03
  • make sure you have closed all emulators before that – Amin Keshavarzian Jan 10 '20 at 11:51
  • @AndreiBogdan That fixed my issue, Thanks!! – DIRTY DAVE Jun 17 '20 at 03:10
30

I think your problem was that you thought that the installer in Android SDK Manager would actually INSTALL the Intel HAXM. But the hook is that it WILL NOT INSTALL it. What it does is extracts the files needed for (really) install Intel HAXM.

I found that out when I got the same problem and then read this in Intel's web page:

Downloading through Android* SDK Manager

... Other steps ...

5) The SDK Manager will download the installer to the "extras" directory, under the main SDK directory. Even though the SDK manager says "Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the "extras" directory to get it installed.

6) Run the installer inside the /sdk/extras/intel/Hardware_Accelerated_Execution_Manager/ directory and follow the installation instructions for your platform.

So all I needed to do was go to folder where my Android SDK was, opened that folder (sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager) and run the silent_install.bat.

After this when I launched my emulator, it said this:

HAXM is working and emulator runs fast virt mode

and everything works as should!

You can also use some useful parameters with silent_install.bat:

  • -v Print HAXM version
  • -c Check VT/NX capability of the platform
  • -h Print usage
Shashank Agrawal
  • 21,660
  • 9
  • 71
  • 105
vilpe89
  • 4,395
  • 1
  • 27
  • 34
  • Sorry for the disturbing you @vilpe89 Please help me out for this solution https://stackoverflow.com/questions/50812600/haxm-error-in-android-studio-3-0-with-windows-requires-a-digitally-signed-driver – Ali Jun 14 '18 at 12:22
11

Make sure the emulator is not running while installing HAXM. Otherwise, there will be an error which you only see when using the standalone installer but not within Android Studio or IntelliJ Idea.

lucidbrot
  • 3,789
  • 2
  • 27
  • 54
  • For me upgrade of HAXM failed with Android Studio 3.4.1. After stopping the emulator, the SDK installation wizard retried the installation and it worked fine. – garnet Jun 21 '19 at 10:15
  • 1
    lucidbrot, thanks a lot! Your advice is as simple as helpful! – Spectorsky Mar 04 '20 at 13:15
10
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

or

bcdedit /set hypervisorlaunchtype off

Other things you may need to do:

  • If using Avast? disable Enable hardware-assisted virtualization under: Settings > Troubleshooting
  • bcdedit /set nx AlwaysOn
  • sfc /scannow and reboot

Important: After anything you try, Restart the PC and try to run the HAXM installation again

Shashank Agrawal
  • 21,660
  • 9
  • 71
  • 105
codecats
  • 1,720
  • 1
  • 10
  • 9
  • 1
    codecats, I tried running the first and second lines on the cmd, but it says I do not have permission (even though I am the administrator and it's my own computer). Do I need to do something or use that somewhere else? – Felipe Feb 09 '15 at 22:41
  • start cmd.exe from Task Manager and be sure to click run with admin privileges (or if you can right click it and get the admin option) – codecats Feb 09 '15 at 22:49
  • This actually helped me. Even though I had disabled HyperV from the Hyper-V Manager, it still didn't work. Just by running the first command (dism.exe /Online /Disable-Feature:Microsoft-Hyper-V) It finally allowed me to install HAXM. Thanks! – Juanu Feb 02 '16 at 15:13
  • 2
    @codecats Downvoted. Please preface your answer with a brief explanation of the purpose of the instructions listed here. – Brian Lacy Jul 03 '18 at 14:51
  • But what if we need HyperV ?? Why do we have to disable it? – Ali Sajjad Aug 21 '20 at 13:13
9

I faced this problem.I got the solution too.It will work.

Step 1: Go to your BIOS settings and check that INTERNET VIRTUAL TECHNOLOGY is Enabled or Disabled.

And make sure HYPER V is disabled. To disable it : a)Go to Control Panel b)Click on Programs(Uninstall a Program) c)Then click on Turn Windows features on or off , then look for HYPER-V and untick it. And Restart. If disabled then enable it.

Step 2: Try to install Intel HAXM now and restart. If It shows same problem again. go to Step 3.

Step 3: You have to disable Digitally Signed Enforcement. To disable it permanently you have to make sure that Secure Boot option is disabled in your system.

How to check ?

Answer is given in the following link. I found it in Internet.[Thanks whoever made that blog]

link : http://www.windowspasswordsrecovery.com/win8-tips/how-to-disable-uefi-secure-boot-in-windows-8-1-8.html

Step 4: Now restart again.

To disable driver signature enforcement permanently in Windows 10, you need to do the following:

1.Open an elevated command prompt instance.
2.Type/paste the following text:

     `bcdedit.exe /set nointegritychecks on`

or Windows 10

     `bcedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS`

Windows 10 disable driver signature enforcement

Restart Windows 10.

*If you somehow want to enable it again:

1.Type/paste the following text:

     `bcdedit.exe /set nointegritychecks off`
Professor
  • 92
  • 12
5

<==||=====>For me who have an AMD Processor:<=====||==>

1. Click on the windows button in the bottom left hand corner


2. Look for Enable/Disable Windows features

( Just type : "windows features", it will appear)

3. And contrary to the other posts here, enable Hyper-V and Windows Hypervisor Platform

Thanks.

Julien Jm
  • 553
  • 6
  • 20
3

This is what worked for me -

  1. Enable Virtualiztion through BIOS (F10-> System Configuration -> Virtualiztion Technology) Depending on your hardware, firmware and BIOS configuration utility the option to enable may be named something else or steps may differ. There is a free software called "Piriform Speccy" which gives information about your machine, which among other things can also be used to check if virtualization is enabled or not on your machine (see screen cap).

Check if virtualization enabled with Speccy

  1. Download HAXM intaller from Intel site. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

  2. If using avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting by unchecking.

Do a hard boot (power button) just to be safe.

somshivam
  • 719
  • 7
  • 19
2

Option 1: Go to Android SDK Folder --> Extra --> Intel and double click on HAXM installer and install it manually.

Option 2: If you do not have latest version of HAXM then you can open sdk manager in android studio and download it.

Option 3: Download HAXM intaller from Intel site. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

Gaurab Kumar
  • 2,023
  • 2
  • 13
  • 24
2

How I solved this problem:

Step-1: Downloaded the Android Studio and installed it. But it failed to install HAXM.

Step-2: Then ran the AVD. Then it prompts to create a virtual device. But it also failed.

Step-3: I downloaded the latest HAXM from intel's GitHub source. From here github.com/intel/haxm/releases/latest

Step-4: Then installed HAXM manually. Documentation is here: Installing Standalone Intel HAXM on Windows

Step-5: Then again tried to create a virtual device of Pie. It successfully created it.

But if your Step-5 fails anyhow, there may another solution: When downloading the .zip file, it will show you the SDK path and also the source path of the .zip file. So you can manually download the .zip and can place it to the SDK path folder. Then again can try to create the virtual device.

Motahar Hossain
  • 451
  • 4
  • 10
2

I probably tried all the solutions mentioned above but all in vain. To summarize, I did:

  • I enable the virtualization going to BIOS setting.

enter image description here

  • Uncheck Hyper-V option by going to Turn Windows features on or off.

enter image description here

Nothing worked for me. What worked for me: I noticed the issue "unable to run mksdcard sdk tool" when I try to download SDK platform.So after some research, I found some SDK tools such as mksdcard.exe require Microsoft Visual C++ runtime 2015-2019. So based on my system type,(for me it was x64) I downloaded the latest Microsoft Visual C++ Redistributable for Visual Studio 2019 from the link https://visualstudio.microsoft.com/downloads/. Detailed answer given here: Android Studio install failed - unable to run mksdcard sdk tool in Windows

enter image description here

enter image description here

After downloading and installing Visual C++ ,the error "unable to run mksdcard sdk tool" was fixed, also when I try to install HAXM after this, it was install successfully. Everything was fine. I was also able to create AVD now(which was also a problem when HAXM was not install).

shaby
  • 1,057
  • 1
  • 13
  • 17
  • Visual C++ was final missing step after enabling virtualization in BIOS, checking Hyper-V and Windows Hypervision Platform in Programs and Features. Amd Ryzen 7 3700x processor. After that I was able to successfully run Android Q on emulator. – Šemsudin Tafilović Dec 13 '19 at 02:18
  • Same with me :) – shaby Dec 13 '19 at 03:49
1

For HP Ultra book with windows 7 enabling hyper-v through bios worked for intel haxm problem.

For enabling hyper-v:-

F10-> Bios advanced setting-> device configurations->enable Hyper-V then install.

It will work.

1

I've figured out. Try to disable Security Boot Control in BIOS options: http://remontka.pro/secure-boot-disable/ (sorry for russian examples) Or try to start system without Digital signature (only for one loading). I had had many unlucky attempts with 'HAXM installer, before I disabled this line. At the beginning I thought that's because Windows 10 Home was installed, and there're many limits.

Vladimir
  • 11
  • 1
1

If Nothing Helps then it means Device Guard and Credential Guard are using the virtualization. I had to disable them by downloading and running the following script from microsoft site.

DG_Readiness_Tool_v3.5.ps1 -Disable

You may need to run this first if it doesn't allow to run the command

Set-ExecutionPolicy Unrestricted

Once you do it, you need to restart and confirm disable both when asked just before boot.

hope it helps!

Anup Sharma
  • 1,754
  • 16
  • 29
1

Note: this is not an answer because I could not find a solution. But I think the information may be useful for others (and it wouldn't be practical as a comment). I have tried all of the steps detailed in the various docs but I could not get Android Emulator to work on my AMD Ryzen 7 :(


Most answers work only for Intel CPUs. If you have an AMD CPU (like me, an AMD Ryzen 7) you need to know about some restrictions and you have to use WHPX instead of HAXM.

I found this on MS's site: Because the Android emulator currently supports AMD hardware acceleration only on Linux, hardware acceleration is not available for AMD-based computers running Windows.

Fortunatelly there is a way to make it work but configuring hardware acceleration for an AMD CPU is a bit more complex:

Requirements and recommendations: - AMD CPU recommendation: AMD Ryzen CPU - Android Studio 3.2 Beta 1 or higher - Android Emulator version 27.3.8 or higher - Windows 10 with April 2018 Update or higher

To use WHPX acceleration on Windows, you must enable the Windows Hypervisor Platform option in the Turn Windows features on or off dialog box. For changes to this option to take effect, restart your computer.

Additionally, the following changes must be made in the BIOS settings: - AMD CPU: Virtualization or SVM must be enabled.

Note that there are further restrictions as well:

  • You can't run a VM-accelerated emulator inside another VM, such as a VM hosted by VirtualBox, VMWare, or Docker. You must run the emulator directly on your system hardware.
  • You can't run software that uses another virtualization technology at the same time that you run the accelerated emulator. For example, VirtualBox, VMWare, and Docker currently use a different virtualization technology, so you can't run them at the same time as the accelerated emulator.

Some more info: Android Emulator - AMD Processor & Hyper-V Support

This recommendation did not help either:

Please note: More recent versions of the emulator (27.2.8, 27.3.0, or later), require an emulator flag while the feature is in the preview. To do this, create or edit the file C:\Users\.android\advancedFeatures.ini and add the line “WindowsHypervisorPlatform = on”, or start the emulator from the command line with “-feature WindowsHypervisorPlatform”.

snorbi
  • 1,932
  • 19
  • 28
1

For me who has an AMD Processor:

  1. Click on the windows button in the bottom left hand corner

  2. Look for Enable/Disable Windows features (just type : "windows features", it will appear)

  3. And contrary to the other posts here, enable Hyper-V and Windows Hypervisor Platform

Eric Aya
  • 68,765
  • 33
  • 165
  • 232
1

THE SHORT ANSWER:

Disable Microsoft Defender Application Guard

None of the answers helped me. Also, most of the answers here were addressed elsewhere online. I spent hours trying to solve this problem. After much hesitation, I decided to go on a hunch. I was suspicious about msinfo32.exe showing a Hypervisor was running, but it would not provide additional detail. I went into the services manager. I saw an instance of a hypervisor service was running, I went to disable it. Before disabling, I was asked if I am sure and was informed that a couple of other services would stop. One of the other services was Microsoft Defender Application Guard for Internet Explorer. I disabled this and FINALLY after hours of research on this topic was able to install Intel HAXM for Android Studio on my i5-4430 with Z87 chipset.

It was not enough to merely disable Hyper V and Windows Hypervisor Platform.

Charles
  • 55
  • 4
0

It should prompt you to install HAXM when creating a new virtual device:

Tools > Android > AVD Manager

It will install through Android Studio automatically.

Mark Tickner
  • 925
  • 2
  • 14
  • 26
0

If you are using windows then edit your AVD config to ARMEABI image instead of X86, Also using ARM will give better performance. HAXM installer is required only if you use X86 image.

0

I think that you would install Android SDK files not in (your PC)\Appdata\Local\Android\sdk (default Path). Also there was nothing when you double click 'intelhaxm-android.exe' file.

If it was, Browse (your PC)\Appdata\Local\Temp\intel\HAXM\6.0.3(yyyy-mm-dd_hh_mm_ss) (or silent), then you must see 'hax64' (or hax) file, and simply invoke this file.

0

Enter with Administrator user. First, you must enable it http://www.ghacks.net/2014/11/12/how-to-enable-the-hidden-windows-10-administrator-account/

Install it from C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-andoid.exe

And login with your user. It work for me.

Ingo Karkat
  • 154,018
  • 15
  • 205
  • 275
Dri John
  • 21
  • 4
0

Good description here: https://developer.android.com/studio/run/emulator-acceleration.html

You may check current HAXM status with following command:

sc query intelhaxm

If you use Windows 10 Home, all issues about Hyper-V is irrelevant for you as it is not supported (Pro is required) and you will not have conflicts :)

Remark: trying to update HAXM to latest version incidentally removed it, but then can't update with SDK manager, as it shows that latest version 6.1.1 is unsupported for Windows (seems configuration is broken, found 6.1.1 for Mac and 6.0.6 for Windows only inside) So would recommend manually download HAXM and install as described: copy to sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager and run the silent_install.bat

Alex C
  • 1
  • 1
0

After some trials, knowing that I had all the factors stated in this thread and other threads properly configured, I still got this error in Android Studio.

Even after installing externally, it seems Android Studio could not discover that HAXM is already installed, unless it gets to install it itself.

As a solution that worked for me, under User\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager which android has downloaded when attempting to install HAXM, click the installer and uninstall the software, then re-try from Android Studio to install it, it should work now.

KAD
  • 10,375
  • 4
  • 25
  • 60
0

I tried the following: 1. Directly installed HAXM from Intel 2. Tried multiple times to un-install and re-install Android Studio with same default paths in C drive. 3. Un-install various other software including QEMU which also uses HAXM, which might have been interfering with Android recognizing HAXM.

Solution was: 1. To un-install Android Studio and install it on D drive including the SDK. This solved the problem.

sateesh12
  • 31
  • 6
0
  1. Install Intel HAXM from Github.
  2. It requires you to Disable the Hyper-V technology. To disable it follow instructions from Microsoft website. You are Good To Go Now.
Y Sachdeva
  • 21
  • 4
-1

If you are using windows, Hyper-V works via AMD not HAXM.

Try the following: on Android, Click SDK Manager ==>SDK Platforms ==> Show Packages ==>ARM EABI v7a Systems Image.

After downloading the systems image, go to the AVD Manager ==> Create Virtual Device ==> choose device (e.g. 5.4 FWVGA") ==> Marshmallow armeabi v7a Android6 with Google APIs ==> Change the AVD name to anything (eg. myfirst)==> click finish.

JonasCz
  • 11,174
  • 6
  • 40
  • 61
-1

If you have all gone through this and it still doesn't work and "systeminfo.exe" shows hypervisor is detected then disable Containers in Windows Features. After that all went well.

Andreas Krohn
  • 1,196
  • 8
  • 7
-1

None of the suggestions worked on their own.

Here is what worked for me: chmod -R 777 $ANDROID_HOME

Then try to install it via android studio -> sdk manager. If its not there, reinstall latest version of Android studio over your current installation. HAXM will show up in SDK manager after that.

If you do not have ANDROID_HOME set, then YOU are part of the problem. The value of it can be found inside Android Studio project structure. On MAC, just type CMD ; and look at SDK Location on left.

Simply run chmod -R 775

ahsan.dev
  • 669
  • 1
  • 5
  • 10
  • Do you really need write permission for "other"? That lets other users on the system write into your directory, and delete files from your directory. Would `775` be sufficient? – Peter Cordes Mar 02 '20 at 19:27
  • I updated my answer @PeterCordes. I think 775 should be sufficient, i just did 777 because of frustration at the time. – ahsan.dev Mar 03 '20 at 20:51
-1

Download HAXM form this link download HAXM .Unzip it and you will see a msi installer file and install it.Then you will see no longer HAXM is not installed while creating your emulator.

Saddan
  • 455
  • 8
  • 11