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?
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.
[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.
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 ... :-(
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.
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.
On Mac, the Android SDK gets installed at: /Users/username/Library/Android/sdk/, therefore, you will need to run the script as sudo, as follows:
sudo sh /Users/username/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
If all goes well, the script prints the message: "Silent installation Pass!"
Then, restart Android Studio and run your app with the desired AVD.
I wasted too much time on this, I find that the AVAST is the issue!!!
If you have AVAST installed in you system, you have to:
Go to settings tab --> troubleshooting, then you should UNCHECK the
"enable hardware-assisted virtualization"
Restart your PC, the install the intelhaxm-android.exe if it is not installed.
You can find it:
C:\Users\{YOURUSERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Right click on your my computer icon and the CPU will be listed on the properties page. Or open device manager and look at the CPU.
It must be an Intel processor that supports VT and NX bit (XD) - you can check your CPU # at http://ark.intel.com
Also make sure hyperV off bcdedit /set hypervisorlaunchtype off
XD bit is on bcdedit /set nx AlwaysOn
Use the installer from https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
If you're using Avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting. Restart the PC and try to run the HAXM installation again
If you recently installed Docker on Windows OS, you need to turn off the Hyper-V feature. See the top answer of VT Not Supported when Installing HAXM
I solved this Issue by enabling virtualization technology from system Settings.
Just followed these steps
Restart my Computer
Continuously press Esc and then F10 to enter BIOS setup
configuration
Check Virtualization technology
Your system settings may be changed According to your Computer. You can google (how to enable virtualizatino for YOUR_PC_NAME).
I hope it helps.
A more detailed answer for dummies like me:
Open the SDK manager
Select the SDK Tools tab.
Download – Make sure that intel x86 Emulator Accelerator (HAXM) is downloaded.
Install – Now that HAXM is downloaded, make sure it is installed. In the SDK window it will show you where the SDK is located on your computer:
Click/tap 3 times quickly to highlight this text and copy the folder location. Open the file explorer and paste in the file location. From here you can search “hax” to find the folder location for HAXM stuff. Once a file comes up in the search results, right click and select “open file location”. For me the location was C:\Users\Datu1\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager . Find the file intelhaxm-android.exe and open/run it.
Follow the instructions when it runs. You may wish to run haxm_check as an administrator (it’s in this same folder), but it may or may not work for you. The surefire way to tell if you can run hardware acceleration and if it’s enabled is to go to your computer’s bios settings from the startup menu.
BIOS settings – Make sure hardware acceleration is enabled in your BIOS settings. The way to do this may vary a bit from system to system. You may need to press f10 or esc on startup. But with most (updated) Windows 10 computers you can access the BIOS settings by doing the following: type “advanced startup” in the Windows search bar; click on “change advanced startup uptions:” when it comes up. Click “Restart now”. After your computer restarts click on Troubleshoot.
Click advanced options >firmware settings, then restart to change EUFI firmware settings. Wait for the restart then select the menu option for bios settings. With Intel processors the steps will be as follows or similar:
Press the right arrow to go to the Configuration tab. Arrow down to Intel Virtual/Virtualizaion Technology and turn it on (should say Enabled).
Exit and save changes.
If Virtual Technology was previously disabled in your bios settings You will need to run the intelhaxm-android.exe file now to install haxm.
Try restarting Android Studio and running your emulator again. If it’s still not working, restart your computer and try again, it should work.
NOTE: if you have Windows Hyper-V turned on this will cause you to not be able to run haxm. If you are having an issue with Hyper-V, make sure it is turned off in your settings: search in the Windows bar for “hyper”; the search result should take you to “Turn Windows features on or off”. Then make sure all the Hyper-V boxes are unchecked.
One more possible reason: you installed HAXM and then updated BIOS settings by disabling virtualization. Or, updated BIOS version. Please check BIOS settings again, and be sure virtualization enabled.
I had the same issue. In my case I found two issues causing the problem
I had Hyper-V running, I think if any Virtualization programs running you need to uninstall
I was running under Standard Account / Not Administrator
Open Android SDK manager,"intelhaxm-86 emulator" install that
Windows Users Only
This is a bit late but just figured that some answers are to go to the bios settings but for me, I was able to resolve this by just disabling the hyper-v feature. We do this by following these steps:
You should install the intel hardware acceleration first on sdk manager than you can start to create your virtual device on AVD manager
Enable virtualization Technology
This is worked in my case
Restart Computer
Continuously press Esc and then F10 to enter BIOS setup
configuration
Check Virtualization technology
My PC is HP Zbook
1. Boot the unit to BIOS (Reboot the unit and keep tapping on F10).
Navigate to Advanced>Device or System Configuration> Click on the check box Virtualization Technology (VTx) and Virtualization Technology for Directed I/O (VTd)
Save changes and Exit.
For me the following solution worked:
1] Going to BIOS setting and enabling Virtualization.
This steps worked on Mint 17.2 Rafaela:
Open a terminal and input this: sudo apt-get install qemu-kvm
Restart your pc and enable virtualization technology on your BIOS setup
In terminal again, insert this: sudo kvm-ok
In the android sdk manager it says that it has hardware accelerator already installed but I think it is only downloaded not installed.I just manually installed the intelhaxm-android.exe and it worked for me.
plus I had docker installed , there were some answers to disable Hyper-V features, therefore I did that too, but not sure whether it helped or not.
I experienced the same issue, but after turning off Hyper-V and enabling VT-x on my BIOS I still couldn't install the intelhaxm-android.exe program.
To fix my issue I had to turn off Windows defender Memory integrity
check here for steps -> https://github.com/intel/haxm/issues/105
I had the same issue even when hardware acceleration installed. My solutions was uninstalling and reinstalling it using SDK Manager. Make sure you restart the Android studio after then.
I already had HAXM installed, but it was an older version. Then I updated from SDK manager, then emulator worked!
This answer works for latest update on Windows 10 version 1709. Not tried with other version. But i hope it'll work.
I also ran into similar issue in my windows 10 system. I disabled Hyper-V and I tried all the answers posted here. But after that also i faced the same issue. So after lot of try, made it work using an documentation available in haxm manual. The document menntioned to use a tool named Device Guard and Credential Guard hardware readiness tool provided by Microsoft to disable Hyper-V along with some other features(Remember not only Hyper-V. So little cautios) completely. Follow the below steps to do that.
Download the latest version of the tool from here.
Unzip.
Open an elevated (i.e. Run as administrator) Command Prompt and run the below command by changing the extrated path and the respective version number.
#powershell -ExecutionPolicy RemoteSigned -Command "X:\path\to\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable"
Reboot.
Then if you try to install intel haxm, it'll work.
In case of latest update check the docs available in official intel haxm development link.
Hope it helps someone.
For those who still have problems with this, you can try using an alternative Android emulator such as Genymotion.
I'm using Ryzen 5 processor with latest Windows 10 update installed (1809), but still can't install HAXM. So, what I did to resolve this was:
Enable Hardware Virtualization in BIOS settings
Enable Hypervisor Platform in Windows Feature
Install Genymotion with Virtual Box -- select for personal use
Install Genymotion Android Studio plugin -- find this in Android Studio plugins settings
You're good to go from here.
I just installed Android Studio without any problems. But when I run the emulator, I get an error:
Cannot Launch AVD in emulator. Output: emulator 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!
I have found a lot of similar posts and I have tried a few things but nothing has worked so far so I decided to make a post.
What I've tried:
Install HAXM through Android Studio
Download it separately through Intel
The error I get for the second option is
This computer meets the requirements for HAXM, but intel VT-x is not turned on. HAXM cannot be installed until VT-x is enabled
So I went into my BIOS but it was already turned on so nothing else I can do there.
Any suggestions?
HAXM stands for "Hardware Accelerated Execution Manager". It is used for launching Emulators and must be installed and in usable status.
Please note that Emulator launching means Virtualisation. So, we need to ensure that Intel Hardware to launch Virtualisation Technology(VT) is enabled in our machine.
So, here 2 things are there
HAXM is installed and VT is enabled?
HAXM is usable?
Following are the steps:
Step.1) Ensure that HAXM is installed.
In Eclipse env.
In Android SDK env. (Click "SDK Manager ==> SDK tools tab")
Close your Eclipse/Android SDK IDE.
Please note only the installer is downloaded at this stage and not actually installed.
Step.2) Launch the installer.
Android SDK path:==> C:\users\%username%\AppData\Local\Android\sdk. In this directory, go to extras → Intel → Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe".
In most cases, the installer launcher should launch. But in some cases, you may encounter this error:
Just make sure that your machine has Hardware Virtualisation Technology(VT) Enabled.
Restart your machine, and keep pressing F1+F2 for the BIOS option and Enable VT as follow.
Again repeat Step.2)
Step.3)
Restart the machine.
a.) Go to Control Panel → Program and Feature.
b.) Click on Turn Window Features on and off. A window opens.
c.) Uncheck Hyper-V option and restart your system.
Now, you can Start HAXM installation without any error.
And then Start your Emulator.
I had this problem for a while too.
I'm not sure if you've done this already but after installing HAXM through Android Studio, you must run the installer located at:
/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/
If you've already done this or it's still not working, try disabling any anti-virus software you have. Apparently it can prevent HAXM from installing.
If it's still not working, check out this post for more help: HAXM error but vt-x is enabled
I also got this problem. Relax. Go through the following steps:
Go to SDK Manager in Tools > Android > SDK Manager, go to launch Standalone SDK Manager, then check the Intel x86 Emulator Accelarator(HAXM Installer)
Then downnload intel haxm from https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager , haxm-windows_v6_0_1.zip (6.0.1) for Windows.
Now we have to enable VT-X from The BIOS, go to settings > Change PC settings > Update and Recovery > In Recovery, go to advanced , Restart now > Trouble Shoot (advanced options) > Advanced options > UEFI Firmware settings > Restart. It will take you to BIOS page , click F10 for BIOS settings , in that go to System > System Configuration . Under that , virtualization technology will appear . Enable it by clicking Enter. Then Exit and Save.
Hopefully !! This will works . Good luck.
When I got this problem, this is wat I did, I tried everything else until I opened my Android Studio as an administrator, then I went to Tools >> Android >> Android SDK Manager, from there, opened tools tab, then extras, then check HAXM, then I was able to install HAXM. Hope it helps someone
I was running Android Studio 3.1.3, and I was very much frustrated with it, as the AVD was not running at all! In anger, I deleted Android Studio and downloaded it all again (now, the version was 3.1.4).
Originally, I had done a "Standard" installation, but this time I did a "Custom" installation, making sure to check the "Android Emulator" and "Intel HAXM Installer" options. This guarantees that the correct components are installed. Now you can create the AVDs.
I faced this problem then I enable VMX in Bios And It solved my problem.
confirm whether the control panel-program-can find "HAXM", if installed, this is a wrong installation.
reinstall "HAXM" in the SDK Tool of Android Studio.
The method is applicable to confirming that the parameters of the BIOS have been set correctly.
I have successfully installed Android Studio from their official homepage.
But the problem is I can't strat my emulator. Once I run the program, it shows the following error in my command window.
"C:\Users\Jabir Al Fatah\AppData\Local\Android\sdk1\tools\emulator.exe" -avd Nexus_5_API_21 -netspeed full -netdelay none
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!
Now, I have uninstalled the Studio at least 10 times and installed them again. I have searched online about all the possible solution. I have HAXM installer installed properly in my sdk.
I have enabled the virtualization in BIOS. But none of those really help.
I wanted to exucute the intelhaxm.exe file. But the problem is I don't find any sdk folder in my drive. I can see the specified derictory for sdk while installing the studio, but in reality that folder is never created and never exist in my drive.
Please help me to find a solution.
Windows 8. Android Studio.
Make sure if virtualization is enable : go through those steps provided below.
Goto setting -> change pc settings-> general->then see on right side
by scrolling the frame down-> you will see under advance start up
restart now button press it->then choose an option window will
open->choose troubleshoot->under troubleshoot choose Advance
option->then under Advance options choose UEFI Firmware option->then
press restart->press f10 for BIOS->see the menubar where you will
find system configuration menu inside it you will see the
virtualization Technology "enable" it ->now go for exit saving
changes in exit on menu bar..
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
(in username : please enter valid user name)
install it and restart your Android Studio.
if you make few changes on above process it is same for win 7 and also same for eclipse have fun!!
I had the same problem. You might wanna read this post:
Error in launching AVD with AMD processor
In particular, after installing HAXM through the SDK manager, which in itself didn't fix the problem, try to run the intelhaxm-android.exe. This showed that I had some hardware virtualization problems (like the error mentioned in the other post).
I'm switching to the Genymotion thingy.
Cheers, B.
Eventually, I found a different solution, as the Genymotion wasn't the right thing for me.
In the AVD manager, I changed the processor type of the AVD to ARM and this doesn't need the HAXM thing at all. This surely doesn't make stuff very fast, but it got me a working emulator. Once it's running, it's not that bad.
Hope this helps.
Cheers!