Emulator: ERROR: x86 emulation currently requires hardware acceleration
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.
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
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:
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:
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:
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 ... :-(
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
- Windows Hypervisor Platform on Windows 10 17134.1 (1803) April 2018 update or newer (commonly not mentioned in articles)
- Hyper-V
Once you restart and start up the emulator (an x86 build), it should start booting up without the mentioned error.
Related videos on Youtube
Mark wealse
Updated on September 21, 2020Comments
-
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?
-
Volker Stolz about 9 yearspossible duplicate of HAX kernel module is not installed
-
live-love over 8 yearsCheck this thread: stackoverflow.com/questions/26521014/…
-
ErSyyedS over 8 yearsDirectly download Intel HAXM from intel site software.intel.com/en-us/android/articles/…
-
Mr Robot about 8 yearsbest answer is stackoverflow.com/a/34282302/4919237
-
Jannie Theunissen over 7 yearsMac users, scroll down to: stackoverflow.com/a/38275065/96944
-
janot over 7 yearsPossible duplicate of Error in launching AVD with AMD processor
-
jww almost 7 years
-
Ashish Singh Rawat about 5 yearsDetailed explanation..=> stackoverflow.com/questions/51399634/…
-
-
Mark wealse about 9 yearsHi, 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 about 9 yearsYou 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 about 9 yearsHi, I have found my Android SDK Manager and the Intel x86 Emulator Accelerator (HAXM installer) was installed
-
KompjoeFriek about 9 yearsOk, 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 about 9 yearsI am so sorry, how can I find what kind of CPU I have and what is the name and type number?
-
KompjoeFriek about 9 yearsThat 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 about 9 yearsHi, 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 about 9 yearsAnd my system is Windows Vista Home Premium
-
KompjoeFriek about 9 yearsI 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 about 9 yearsHi 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 about 9 yearsFor 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 about 9 yearsOK, 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 about 9 yearsYou 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 over 8 yearsBetter ans with 0 complications :)
-
Maksim Dmitriev about 8 yearsInstallation 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 ranintelhaxm-android.exe
-
Vijay Nandwana about 8 yearsIf you don't find Android under Local folder, then download intelhaxm-andriod.exe directly from software.intel.com/en-us/android/articles/…
-
Sold Out almost 8 yearsIs 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 almost 8 yearsI don't see such item "enable hardware-assisted virtualization" there.. Could it be they removed it - in the mean time ?
-
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 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 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 about 7 yearsIs this possible using command line? I am having this issue in a remote jenkins.
-
Devstr almost 6 yearsAnd if you get "HAXM silent installation only support mac OS X from 10.8 to 10.10 !", see stackoverflow.com/questions/32924736/…
-
Caltor almost 6 yearsMy SDK directory is
C:\Program Files (x86)\Android\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager
-
M.suleman Khan almost 6 yearsI 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 over 5 yearsIs this support retroactive or only Ryzen and newer?
-
XP1 over 5 yearsI 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 over 5 yearsThis thread has some potentially useful info: github.com/intel/haxm/issues/77#issuecomment-405943152
-
Peter Cordes over 5 yearsHow 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 over 5 yearsPlease 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 over 5 yearsThx. This helped me get the Emulator running, but now I can't get the App to install on my chosen device.
-
reVerse over 5 yearsOne 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 over 5 yearsOn executing the exe, first I did remove/ unistall, and then rerun to install it. Worked now!
-
Li3ro over 5 yearsMissed your very important comment: (only supported for Linux) 1 hour wasted :(
-
Fabian Schneider about 4 yearsIn 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 over 3 yearsLooks 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 over 3 yearsIn my case of AMD processor I needed to check
Install Android Emulator Hypervisor Driver for AMD Processors
in SDK manager -
KompjoeFriek over 3 yearsSupport of AMD launched on Nov 27, 2019. I'll edit my answer to reflect this.
-
Venus about 3 yearshow can I install HAXM on Centos8 without GUI ?