all!
Today was my first time installing Android Studio on my Windows 10 Home Edition laptop and things became complex quickly. Android Studio seemingly installed, but Intel HAXM didn't. (Error message is below.) Further Googling showed me that Hyper-V wasn't available on Windows 10 Home Edition and was seemingly forcibly removed/super disabled on a recent service pack release.
How important is HAXM for Android development since I lack an Android phone? If I don't use Android Studio, what Android emulator and version should I use?
Thankee!
HAXM is a cross-platform hardware-assisted virtualization engine (hypervisor), widely used as an accelerator for Android Emulator and QEMU. It has always supported running on Windows and macOS and has been ported to other host operating systems as well, such as Linux and NetBSD
It is Intel's virtualization extension for Android Emulator on x86.
You can use an emulator with the ARM image instead of HAXM provided that you installed it in your SDK manager.
Check your SDK manager and install the ARM image for the API level you want, then go to the AVD manager and make a virtual device using ARM as the CPU.
Note: ARM images are not available in the latest API levels, but it is available on API level 25 below
I think you don't need it for work with Android Studio.
If you don't have an Android Phone, you will need to set up Genymotion.
I tried to use the "Android Virtual Device Emulator" on my Windows-PC using a AMD Ryzen 2400G and Windows 10 Professional. I activated the Windows-Hypervisor-Platform, restarted my PC and Android Studio, but it still says "x86 emulation currently requires hardware acceleration". How can I install the hardware acceleration using an AMD Processor?
In order to run the Android Emulator with an AMD processor you need to do the following, according to Google
AMD Processor - Recommended: AMD® Ryzen™ processors
Android Studio 3.2 Beta or higher - download via Android Studio Preview page
Android Emulator v27.3.8+ - download via Android Studio SDK Manager
x86 Android Virtual Device (AVD)
Windows 10 with April 2018 Update (version 1803)
Enable "Windows Hypervisor Platform" via Windows Features: Search for Turn Windows features on or off and check this option, which is present in all Windows editions, including Home edition starting from version 1803. This term can be confused with Hyper-V, but they are different things. You only need to turn the former on in order to use the emulator.
I followed all these steps in my HP Envy X360 with AMD Ryzen 7 2700U and was still getting the "emulation currently requires hardware acceleration" error. What fixed it for me was turning on "Virtualization" in my BIOS settings. It may have another name in other BIOS systems, but apparently you need to turn the setting that allows virtualization on as a final step.
FYI, it's usable but laggy in my system (256 GB SSD + 8 GB RAM). I wouldn't use it for everyday work, only for some sort of emergency case. I'd suggest to stick to a physical device when possible, if you have similar specs.
I had all the requirements listed by schv09, like good versions and virtualization and Windows Hypervisor Platform enabled, but Android Emulator did not work for me either with Ryzen 5 1600. I updated Windows 10 from version 1803 to latest 1903, and now it works. I can't tell what has changed.
I just instaled android studio and when I run the app, the emulator doesn't open and shows the error. I have attached the screenshot of the error. I am using MacBook Pro 2012. Recently I have installed 8GB RAM to the Mac. Now the total RAM is 2GB+8GB. Is it due to the new RAM installed? or it's a different thing?
When you use third-party products that incude Intel VT-x virtualization technology, an alert message might tell you that VT-x support is locked by the firmware on your Mac.
You might also notice that VT-x support is disabled when you use third-party virtualization applications on your Mac like VMWare Fusion or Parallels Desktop.
You can fix this issue by making sure that your Mac has the latest software updates available:
For Mac Pro (Original), install Mac Pro EFI Firmware Update 1.2 or later.
For reference, kindly go through below link.
https://support.apple.com/en-us/HT203296
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.
I install visual studio 2013 and android studio on my computer. Visual studio 2013 emulator is run perfectly but android studio emulator is not run and found for intel haxm installed. when i installed intel haxm it shows the following error.
This computer does not support intel virtualization Technology (VT-x).HAXM cannot be installed.Please refer to the Intel HAXM documentation for more information.
Your problem is not because you have installed both Android Studio and VS. It's because you want to use HAXM which requires intel virtualization support & your computer do not support virtualization.
If you want to use Emulator for Android Studio, you can try GenyMotion. It's fast and do not requires virtualization support. Download Link is Here https://www.genymotion.com/#!/download
[EDIT]
One more thing i want to add is Virtualization is not compulsory for emulator to work on Android Studio. But if virtualization is there then it will be good , It can increase your emulator's speed multiple times. I am not a VS user , So I can't comment on VS 's emulator.