AndroidStudio: Can't run AVD because of Intel HAXM error - android

According to my AS SDK manager, Intel x86 Emulator Accelerator (HAXM Installer) version 6.0.1 is installed.
However, if I attempt to 'run' my app, then choose an 'available emulator' (eg, nexus one api 23), I get the error: intel haxm is required to run this avd.
A couple of days ago I was not having this problem (I was able to use an emulator).
Also, according to my System Settings/Android SDK, I have Android 6.0, API Level 23.
I am using Win XP, with AS2.0.

You have to install it.
Go to your sdk manager and then select it to install it (look at the bottom). Then you have to go to the folder in which the android studio is installed then look for extras/intel and then install it.
There can be a couple of problems when this happens. You have to run your BIOS to activate virtualization technology (look how to go to the BIOS), and deactivate your antivirus while its installing. (Also you should deactivate the option about virtualization technology).
When the HAXM its done, open your android studio and try to run your application, it's gonna work this time!
(I had the same problem few days ago).

I ever see Avast! doing wrong with Intel HAXM (did you just installed it ?) on a friend's laptop.
What i would suggest is simply to unistall/reinstall it in "Settings/System Setting/Android SDK".
Personnally at the HAXM "installation" from AndroidStudio it was downloaded only. I managed by going to "C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager" (or the corresponding path onto your computer) in order to run the installer manually.

The reason is because you have installed Avast. You have to uncheck this option: Enable hardware -assisted virtualization

Related

Hyper-V is disabled. I cannot run intelhaxm-android.exe - ERROR: x86 emulation currently requires hardware acceleration

I don't know why this error has occured. I have looked at other similar questions and have followed all protocol needed.
I Know...
My computer supports VT-X or Intel Virtualization Technology
I have disabled Hyper-V in Windows Features
I have enabled VT-X for Intel in BIOS for my Dell XPS-13
I have tried everything but this does not work. Thanks in advance.
The following errors occur after I try running my emulator (Nexus 5x API 28):
Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Emulator: Process finished with exit code 1
I was having a similar problem. These are the steps I gave someone else. I also enabled virtualization, but when I was following these steps and went back into BIOS, it was disabled again. Also, I noted that in Step 8, I tried to download the API 28 platform but it only came back as Partially Installed (no errors even). So I would also recommend trying to create a virtual device with a lower API, just to see if it being the newest is the issue.
Go into Android Studio and open the SDK Manager (under the Tools menu)
Under SDK Platforms tab, UNCHECK any boxes that are selected. If there are any boxes checked, that means they are installed - but we want to uninstall them for now.
Go to the SDK Tools tab. Make sure that Android Emulator, Android SDK Platform-Tools, and Android SDK Tools are all checked.
In the same tab, make sure that the Intel x86 Emulator Accelerator is UNCHECKED. If it is checked, that means it is installed, but we want to uninstall it for now. (I also uninstalled Android SDK Build-Tools, but I'm not all sure if that step was necessary.)
Go to this link: https://github.com/intel/haxm/releases/download/v7.2.0/haxm-windows_v7_2_0.zip This is where we re-install the Intel x86 Emulator Accelerator. Save it to your Downloads folder, and extract files. Do not launch any setup wizards yet!
Shut down your computer. As you start it up again, launch BIOS (For Windows 10, hold down F10 key). In BIOS, press the right arrow until you get to the third tab. Under there, go down to an option for Virtualization. If it is set as , use the Enter key to set it to . Press F10 to save and exit.
Go back into your Downloads folder, or wherever you saved the Intel x86 Emulator Accelerator (aka haxm). Double click on the file intelhaxm-android. This will install haxm to your computer.
Go into Android Studio, and open up the SDK Manager again. In the SDK Platforms tab, re-check the boxes for the APIs that you want. This will re-install them, since earlier we uninstalled them. (I tried to install API 28, but afterwards it was labeled Partially Installed, so I went ahead and downloaded APIs 27 and 26.) Click Apply and allow it/them to install.
Go to the tab SDK Tools and re-check the boxes for Android SDK Build-Tools and Intel x86 Emulator Accelerator. Click Apply and allow them to install.
At this point, I had already set up a Virtual Device with API 26, and it successfully loaded. Make sure that if you are setting up a Virtual Device, that you set it for an API that you installed in Step 8.
That was my solution, I hope it works for you!

Failed to install HAXM during Android Studio installation

I'm trying to install Android Studio, but it's showing this error.
Is there a solution for this problem?
As #Marcin Koziński said in Intel, HAXM requires only to run the Emulator faster. Still, if you want to install HAXM, follow the steps.
Restart your PC and go to BIOS
In advanced option, Enable Virtualization and save exit
After Windows restarted, go to the SDK path of your Android Studio
Find this path \sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Run intelhaxm-android.exe executable
Now, this would install HAXM software in your system. Note that your system must have Intel CPU, not AMD
Ignore this error on Android Studio installation and go to the Intel website, download the HAXM installer that they provide (instead of using the one downloaded through Android Studio).
Here's the link:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
and the direct link:
https://github.com/intel/haxm/releases/tag/v7.6.1
Try this :
Go to Control Panel → Program and Feature. Click on Turn Window Features on and off. Uncheck Hyper-V option and restart your system.
Now you should install HAXM with no error
Enable virtualization in your bios ( found under the cpu performance ) …then disable hypervisor and also unchecked virtual machine platform ( mostly on win 10 and win 11)
Restart your machine
Good to gooo!!
I was also facing the same issue, however i have tried below steps which worked for me.
Instead of installing HAXM from android studio, download it from
here HAXM
From - Downloads section, you can download MAC or WINDOWS release.
Install it from IntelHaxm-android file
Note - Same kind of steps we can follow for Mac.
Go to android studio SDK Manager select SDK tools and search for Intel x86 Emulator Accelerator(HAXM Installer) and install it. This should solve the problem.
I disabled tamper protection and core isolation in windows defender and it solved the issue.
If you are using Windows 10, then, be sure to disable "Windows Defender Credential Guard".
Reference: https://learn.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage
In my case, in the Window features on or off, I uncheck both the "Windows Hypervisor Platform" and "Virtual Machine Platform". After restart, the Android Studio, SDK Manager, Android SDK, SDK Tools, Intel x86 Emulator Accelerator 7.6.5 can then successfully be installed. Just uncheck the "Windows Hypervisor Platform" is not enough. My Android Studio is 4.1.3 and my Windows 10 OS build is 19041.867
Go to Control Panel → Program and Feature. Click on Turn Windows Features on and off. Uncheck Hyper-V and Windows Sandbox option and restart your system.
I enabled Virtualization in my BIOS and the installation worked, i have intel I5 CPU
Enabling Virtualization in BIOS solved the issue for me. If you have an Intel processor, you need to enable VMX in the CPU configuration file. Here is an detailed article with the steps (for asus motherboards). https://www.asus.com/support/FAQ/1043786/
I wrote a perfect documentation for that. The key is to download the HAXM driver but don't close the Android installation window after it's downloaded. You need to find it's path and run the installer .bat through Powershell or CMD. Simply follow along the mentioned guideline I wrote and you will be finde. Cheers!
If you're running on a macbook pro laptop, make sure to reboot to windows without pressing the option key for boot selection. As this will disable virtualization .
To soft reboot to windows
Soft reboot via the Apple menu i.e. top left Apple icon => restart. During bootup select Windows/Bootcamp (via the option key). My Windows was Bitlocker encrypted, so I entered the disk password, booted to Windows, entered Windows password, landed on Windows 10 desktop. This time Hyper-V was present and functional!
if the error still persists. Ignore the Android Studio installation error
Disable the Hyper-V Manager
Hyper-V is another Virtualisation env. 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
Go to Control Panel -> Programs and Features -> Turn Windows features on or off
From the window disable Hyper-V options
Reboot your machine
or on cmd prompt with admin priveledges:
bcdedit /set hypervisorlaunchtype off
Go to the Intel website, download the HAXM installer that they provide (instead of using the one downloaded through Android Studio).
Here's the link: https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
and the direct link: https://github.com/intel/haxm/releases/tag/v7.6.1
Open BIOS setting of your PC/Laptop.
Goto Advance -> Device Configuation.
Enable VTx(Virtualization Technology).
and Try to install HAXM.
Hope this will work.
IF u have AMD CPU you have to install Driver for AMD processor(It's in SDK Tools options menu.) then go to C:\Users\YOURNAMEHERE\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver and run silent_install.bat. If it doesn't work try cloning your emulator device instead creating new one. Also, you might have to set SDK root home folder as a new variable.
when you press +creating virtual device and selcting device on the right side of it shows you HAXM installation or something ,you can check there.
I tried several times to install the HAXM but all in vain. Finally i came to an end and watched this video. This video creator is awesome and have provided the exact solution i needed to.
Here's the video link: https://www.youtube.com/watch?v=7_Ny7-y6TRA&t=113s
And
From this link you can download the software for your device.
https://github.com/intel/haxm/releases
I hope it'll help you as it does mine :)
Have tried some solutions stated above, sadly it did not work for me.
Just noticed that when I install HAXM it uninstall HAXM after installing, so what I did was after the installation even gets finished (before setting how much RAM to give it) I went to the SDK folder on %appdata% then copied the folder from Hardware_Accelerated_Execution_Manager which can be seen on extras folder then I exit android studio then paste the folder on extras/intel then it worked :D
This worked for me :
If you already disabled completely Hyper-V and it's still not working disable also:
Windows Hypervisor Platform
"The Windows Hypervisor platform is an API that third-party developers can use in order to use Hyper-V."
Ofcourse you're CPU need to be intel based and also you need to turn on Virtualization options in BIOS.
Hope it helps if not I wish you a lot of luck.
I'm adding here the official Release Notes of the HAXM.
This is not a solution answer but it will complete the solutions already mentioned in terms of requirements and known issues:
Prerequisites
Intel(R) HAXM requires the Android SDK to be installed
(version 17 or higher). For best performance, using SDK version 20 or
higher is recommended.
System Requirements
---------------------------- Hardware Requirements:
Intel(R) processor with support for VT-x, EM64T, and Execute Disable Bit
At least 1GB of available RAM
Supported Operating Systems:
Windows* 10 (64-bit)
Windows* 8.1 (64-bit)
Windows* 8 (64-bit)
Windows* 7 (64-bit)
macOS* 10.12, 10.13, 10.14
Note:
Test was NOT conducted on Windows* XP since Microsoft* will not offer support for this version.
Test was NOT conducted on 32-bit Windows since Android Emulator only supports 64-bit Windows.
Important:
Intel HAXM cannot be used on systems without an Intel processor, or an Intel processor lacking the hardware features, described in the
"Hardware Requirements" section above. To determine the capabilities
of your Intel processor, please visit http://ark.intel.com/
Intel HAXM can only accelerate Android x86 and x86_64 system images for Android Emulator. These system images as well as Android Emulator
can be installed using Android SDK Manager.
Known Issues:
HAXM driver does not support emulating a 64-bit system image on Intel systems based on Core microarchitecture (Core, Core 2 Duo etc.).
All systems based on Nehalem and beyond are supported (Core i3, Core
i5 and Core i7 machines).
QEMU or Android Emulator will fail to launch if the guest RAM size (specified with the -m option for QEMU or -memory for Android
Emulator) exceeds 4095MB.
If the guest RAM size (specified with the -memory option for Android Emulator) exceeds 3583MB, Android will either fail to boot or report
the total memory as 3.0GB.
If DriverVerifier is running on a Windows System on which HAXM is installed BSOD can happen during HAXM uninstall. Check the following
link for more information from Microsoft.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff545448(v=vs.85).aspx
On Windows platform using sc query command on command line will show the driver to be in Running state even if VT is disabled in BIOS. The
Android SDK gets this information from HAXM driver whether VT is
enabled or not and displays it to user when the user starts to emulate
a device. The information in the SDK is the most accurate information
for the state of the HAXM driver.
On Windows 8, 8.1 and 10, it is recommended to disable Hyper-V from Windows Features in order for the HAXM driver to properly function.
On Windows, Avast Antivirus may interfere with HAXM and cause Android Emulator or QEMU to run very slowly. A workaround is to
uncheck "Use nested virtualization where available" in Avast Settings
If all these options stated above did not work, then I recommend you go to the BIOS settings of your PC and enable virtualization mode.
My laptop is HP x360. I had to enable virtualization in BIOS( use f10)
Then do this step https://github.com/intel/haxm/issues/105#issuecomment-470296375
if memory integrity is off inside core isolation. Switch it on.
If you get an incompatible driver error when you switch on above feature, then find and uninstall/delete it.
In my case, Tencent's gaming buddy was the driver.
In some systems, the windows feature Hyper-V is not listed. instead, it is "Windows Hypervisor Platform" <- Uncheck this.
These all may take multiple restarts.
Then finally try installing HAXM from android studio.
It should work.
As fabio-roveroto ignore this error because HAXM is used for Android Emulator.
If you want to use Android Emulator you must install HAXM please follow these steps in the below link for fixing the error:
https://support.bluestacks.com/hc/en-us/articles/115003174386?utm_campaign=bgp_product&utm_medium=app_player&utm_source=support
And If you can't find UEFI Firmware Settings in the Advanced options, please check that your PC BIOS mode is Legacy or UEFI from this link, If your BIOS mode is Legacy
check this link to convert Legacy to UEFI.

Installing HAXM on Windows 10 for Android Studio

Android Studio told me to install HAXM, so I downloaded it and when I went to install, it said This computer does not support Intel Virtualization Technology. After some search, I found that if you uncheck Hyper-V in control panel, all will be well. The problem I'm facing is, it isn't even checked. Is there any other way to fix this issue or does my computer just really not support VT-X?
This will fix your issue Develop apps using x86 Android* 4.4 (KitKat) emulator on Intel Developer Zone see the section
4. Download and install Intel HAXM
you will find other emulators intalation also
Make sure Virtualization is enabled in BIOS (advanced Firmware for
windows 10)
and install manually from
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager/
after running installation batch file, silent_install.bat of downloaded zip file.
tns run android -->Should open up the simulator!
I was able to download latest version of haxm from github url https://github.com/intel/haxm/releases
click on the respective release number to get the download option.
For AMD processor see this link.
Run Android studio emulator on AMD processor

Can't install Intel HAXM for Android Studio. ERROR x86 emulation currently requires hardware acceleration

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 can't install intel HAXM

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?
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
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
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.
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
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`
<==||=====>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.
I probably tried all the solutions mentioned above but all in vain.
To summarize, I did:
I enable the virtualization going to BIOS setting.
Uncheck Hyper-V option by going to Turn Windows features on or off.
Download HAXM directly from the website https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager and install it.
Uninstall and reinstall Android Studio.
Copy the HAXM from my another system where HAXM was working fine, from the location C:\Users\UserName\AppData\Local\Android\Sdk\extras\intel
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
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).
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.
This is what worked for me -
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).
Download HAXM intaller from Intel site. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
If using avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting by unchecking.
Do a hard boot (power button) just to be safe.
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
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.
Install Intel HAXM from Github.
It requires you to Disable the Hyper-V technology. To disable it follow instructions from Microsoft website.
You are Good To Go Now.
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.
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.
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!
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”.
For me who has an AMD Processor:
Click on the windows button in the bottom left hand corner
Look for Enable/Disable Windows features (just type : "windows features", it will appear)
And contrary to the other posts here, enable Hyper-V and Windows Hypervisor Platform
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.
It should prompt you to install HAXM when creating a new virtual device:
Tools > Android > AVD Manager
It will install through Android Studio automatically.
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.
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.
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.
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
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.
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.
I installed Android Chipmunk 2021.2.1 and tried to install HAXM through the SDK manager. It failed first because I was running an emulator. However, one other thing I noticed is that when you first run the installer, it creates the folder for the HAXM install. Then, when the memory allocation dialog pops up, it tries to create the folder again. Since the folder already exists, it appends a "2" on the end of a new one. What I did is watched the install folder and when it creates the folder the first time I deleted it before continuing. I then continued with the install and it created the folder again and completed successfully. It seems there is a bug in the new SDK installer for HAXM
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.
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.
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

Categories

Resources