Emulator: ERROR: x86 emulation currently requires hardware acceleration

688,700

Solution 1

As per this response, the complete steps are:

1) Open SDK Manager (In Android Studio, go to Tools > Android > SDK Manager) and Download Intel x86 Emulator Accelerator (HAXM installer) if you haven't.

Intel x86 Emulator Accelerator (HAXM installer)

2) Now go to your SDK directory C:\users\%USERNAME%\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\ and run the file named intelhaxm-android.exe.

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization.

3) Restart Android Studio and then try to start the AVD again.

It might take a minute or 2 to show the emulator window.

Solution 2

[edit] The Android developer page has been updated with an excellent guide to get an emulator up and running. [/edit]

Install the Intel x86 Emulator Accelerator using the Android SDK Manager

Android SDK Manager

If you have Android Studio installed, you can start the SDK manager via Tools -> Android -> SDK Manager.

The Android SDK Manager does not actually install HAXM, it just downloads it. In the top of the Android SDK manager window, you can find where the installer is located on your PC. Please open the subfolder extras\intel\Hardware_Accelerated_Execution_Manager, and run the installer manually: intelhaxm-android.exe.

To use the intel HAXM, you need to have a CPU with virtualization support:

Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies:

  • Intel Virtualization Technology (VT, VT-x, vmx) extensions
  • AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

[edit] As of Nov 27, 2019, Google has released an emulator for AMD CPUs. [/edit]

If your CPU does not have virtualization support, you could use an ARM emulator instead:

You can edit an existing, or add a new Virtual Device in the Android Virtual device Manager, and change CPU/ABI to ARM. If that option is not available, you may need to change the target API of the Virtual Device, or download an ARM system image for the API version you want using the Android SDK manager.

Solution 3

I was able to resolve my problem of the missing acceleration with the following workflow on Windows 10, Lenovo, Intel Core i7 CPU:

Changed to the HAXM setup folder: C:\Users\\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager

Opened a cmd (MS-DOS) shell Window and executed haxm_check.exe to check whether CPU supports HAXM - it outputs in my case:

VT support -- yes
NX support -- yes

So, I knew this most be a setup problem. So, I started the setup program intelhaxm-android.exe in the same folder with Admin account and removed the installed components. After that, I've attempted to re-install with the same setup program and got this output:

HAXM Supported but not turned on So, I went into the CPU section of the BIOS and turned on acceleration/Virtualization - went back to the setup program and re-ran it, this time I was pleased to see this output:

enter image description here

After that, I restarted Android Studio and used Tools>AVD Manager to define a new image for an emulator. I was then able to see the emulator starting up succesfully by clicking the play button in the list of emulators in the AVD Manager's list:

enter image description here

or by - Opening a sample project that compiles OK - using File > Sync Project with Gradle Files (to build all artifacts) - Select the app item in the Android (TW) and click Run > Run 'app' - Select the previously configured Emaulator showed me this :-)

Hope this helps to troubleshoot others with their problems that are really caused by a bad setup implementation since the missing acceleration option was silently swallowed by the Android Studio setup program ... :-(

enter image description here

Solution 4

Simple Solution :

Open Android SDK manager, on top side you can see the "Android SDK Location" go to that location and follow this path

\extras\intel\Hardware_Accelerated_Execution_Manager

here you will get "intelhaxm-android.exe" install this setup.

Solution 5

If you are using an AMD CPU, AMD Virtualization (CPUs such as Ryzen) is now officially supported. Make sure you have virtualization switched on in the BIOS.

In "Turn Windows Features On or Off" (you can find it through Windows Search), you'll need to enable

Once you restart and start up the emulator (an x86 build), it should start booting up without the mentioned error.

Share:
688,700

Related videos on Youtube

Mark wealse
Author by

Mark wealse

Updated on September 21, 2020

Comments

  • Mark wealse
    Mark wealse over 3 years

    I tried to run my Hello World application in Android Studio. I got the following error:

    Emulator: ERROR: x86 emulation currently requires hardware acceleration!

    Please ensure Intel HAXM is properly installed and usable.

    CPU acceleration status: HAX kernel module is not installed!

    Can you tell me what I can do with the error?

  • Mark wealse
    Mark wealse about 9 years
    Hi, Thank you so much for your quickly response! Do you think I have got Android SDK Manager? If, I install the Intel x86 Emulator Accelerator, will this change something in my computer?
  • KompjoeFriek
    KompjoeFriek about 9 years
    You should be able to access the SDK manager from Android studio: lirent.net/wp-content/uploads/2013/12/… What do you mean with: will this change something in my computer
  • Mark wealse
    Mark wealse about 9 years
    Hi, I have found my Android SDK Manager and the Intel x86 Emulator Accelerator (HAXM installer) was installed
  • KompjoeFriek
    KompjoeFriek about 9 years
    Ok, that probably means ShiDoiSi is right. To verify this, please check what kind of CPU you have and post the name and type number here.
  • Mark wealse
    Mark wealse about 9 years
    I am so sorry, how can I find what kind of CPU I have and what is the name and type number?
  • KompjoeFriek
    KompjoeFriek about 9 years
    That is hard to say without knowing what Operating System you use (Like: Windows, or OSX). You could use software like this to help: cpuid.com/softwares/cpu-z.html The name we are looking for is something like: Intel I5 4460 or AMD FX 6300
  • Mark wealse
    Mark wealse about 9 years
    Hi, I have just found: Processor: Intel(R) Core(TM)2 Duo CPU E4400 @ 2.00GHz 2.00 GHz System type: 32-bit Operating Sytem
  • Mark wealse
    Mark wealse about 9 years
    And my system is Windows Vista Home Premium
  • KompjoeFriek
    KompjoeFriek about 9 years
    I happen to have a CPU with the same feature set (E8400). The Android SDK Manager did not actually install HAXM on my machine, just downloaded it. In the top of the Android SDK manager window, you can find where it is located on your PC. Please open the subfolder extras\intel\Hardware_Accelerated_Execution_Manager, and run the installer manually: intelhaxm-android.exe. I got the x86 emulator running after that.
  • Mark wealse
    Mark wealse about 9 years
    Hi thanks a lot, When try to install as you suggested, I got information: VT not supported This computer does not support Intel Virtualization Thchnologe (VT-x). HAXM cannot be installed. Please refer to the Intel HAXM documentation for more information.
  • KompjoeFriek
    KompjoeFriek about 9 years
    For reference, this is the feature specification of your CPU: ark.intel.com/products/29753/… I'm sorry, but that means you cannot run and Android x86 emulator on that machine. However, you could use the Android ARM emulator instead, i think that one does not require VT-x
  • Mark wealse
    Mark wealse about 9 years
    OK, I agree that my computer is not good enough to run the Android x86 emulator. Can you tell me how can I use the Android ARM emulator instead?
  • KompjoeFriek
    KompjoeFriek about 9 years
    You can edit an existing, or add a new Virtual Device in the Android Virtual device Manager, and set it to use the ARM cpu: i61.tinypic.com/2vwa8fk.jpg If that option is not available, you may need to change the target API of the Virtual Device, or download an ARM system image for the API version you want using the Android SDK manager.
  • CandleCoder
    CandleCoder over 8 years
    Better ans with 0 complications :)
  • Maksim Dmitriev
    Maksim Dmitriev about 8 years
    Installation of Intel HAXM consists of two steps. First, you need to download it using SDK manager. Then you need to run intelhaxm-android.exe to install Intel HAXM. The reason I'm writing this comment is that I downloaded HAXM, and the error dialog continued showing up until I ran intelhaxm-android.exe
  • Vijay Nandwana
    Vijay Nandwana about 8 years
    If you don't find Android under Local folder, then download intelhaxm-andriod.exe directly from software.intel.com/en-us/android/articles/…
  • Sold Out
    Sold Out almost 8 years
    Is there a good reason why the bottom right button on SDK manager says "Install packages" and yet it does not install HAXM - just download ? I'd like to learn what reason could be behind.
  • Sold Out
    Sold Out almost 8 years
    I don't see such item "enable hardware-assisted virtualization" there.. Could it be they removed it - in the mean time ?
  • Periata Breatta
    Periata Breatta over 7 years
    @Peter - I believe the reasoning is that the SDK manager is designed to run as a regular user but installing HAXM requires admin access. It should, however, have a popup message when it has downloaded HAXM telling you what you need to do to get it working.
  • Periata Breatta
    Periata Breatta over 7 years
    @KompjoeFriek - you should edit your answer to include the information that you need to run the installer after downloading it. It really isn't clear from any of the information in the SDK manager's user interface that this extra step is required.
  • Sold Out
    Sold Out over 7 years
    @PeriataBreatta Thank you - good and quite obvious guess :) If you are rignt, may it become an improvement point for google team..
  • vida
    vida about 7 years
    Is this possible using command line? I am having this issue in a remote jenkins.
  • Devstr
    Devstr almost 6 years
    And if you get "HAXM silent installation only support mac OS X from 10.8 to 10.10 !", see stackoverflow.com/questions/32924736/…
  • Caltor
    Caltor almost 6 years
    My SDK directory is C:\Program Files (x86)\Android\android-sdk\extras\intel\Hardware_Accelerated_‌​Execution_Manager
  • M.suleman Khan
    M.suleman Khan almost 6 years
    I tTRIED these steps Intel HAXM and intelhaxm-android.exe both were already installed but still showing this error: ERROR: x86 emulation currently requires hardware acceleration!
  • XP1
    XP1 over 5 years
    Is this support retroactive or only Ryzen and newer?
  • XP1
    XP1 over 5 years
    I could not find the Windows Hypervisor Platform setting, but I figured it out. In order to enable Windows Hypervisor Platform, you must install Windows 10 17134.1 (1803) April 2018 update or newer. It should work on AMD older than Ryzen.
  • binaryfunt
    binaryfunt over 5 years
    This thread has some potentially useful info: github.com/intel/haxm/issues/77#issuecomment-405943152
  • Peter Cordes
    Peter Cordes over 5 years
    How is this different from the multiple other answers that mention BIOS settings? This isn't another possible reason, it's the same one again.
  • Juozas
    Juozas over 5 years
    Please keep attention on mentioned specific case: BIOS settings updated/reset after successful HAXM install and usage. F.e. by other users using machine or BIOS update. Many of us knows about BIOS settings was, and looks for problems in another places. I failed in same way.
  • Stephen McCormick
    Stephen McCormick over 5 years
    Thx. This helped me get the Emulator running, but now I can't get the App to install on my chosen device.
  • reVerse
    reVerse over 5 years
    One thing worth mentioning: Sometimes you can't enable Hyper-V right away because it is disabled via the BIOS settings of your mainboard. Unfortunately it's called differently in the BIOS settings depending on your manufacturer.
  • Vignesh Paramasivam
    Vignesh Paramasivam over 5 years
    On executing the exe, first I did remove/ unistall, and then rerun to install it. Worked now!
  • Li3ro
    Li3ro over 5 years
    Missed your very important comment: (only supported for Linux) 1 hour wasted :(
  • Fabian Schneider
    Fabian Schneider about 4 years
    In Android Studio 3.2.2 the seperate execution of intelhaxm-android.exe is no longer needed as it is executed once it is downloaded by Android Studio.
  • pseudoabdul
    pseudoabdul over 3 years
    Looks like for a window/AMD environment this isn't possible (at least with everything I've tried). You can still use a hypervisor, but it just has to be the windows one.
  • mohas
    mohas over 3 years
    In my case of AMD processor I needed to checkInstall Android Emulator Hypervisor Driver for AMD Processors in SDK manager
  • KompjoeFriek
    KompjoeFriek over 3 years
    Support of AMD launched on Nov 27, 2019. I'll edit my answer to reflect this.
  • Venus
    Venus about 3 years
    how can I install HAXM on Centos8 without GUI ?