Reputation: 198
This is frustrating af. My problem seems not to be unique as you can see, there are a lot of similar issues opened here in SO but after playing trial and error for i-dont-know-how-many-hours i give up.
Some quick context:
Installed Android Studio. Created my first ADV. Lunch it and then, this appears:
Tried to install HAXM from the AS settings option (Tools> SDK Manager> SDK Tools and click on the Intel x86 Emulator...). The installation failed:
Surprised, i went to that path only to check that there was a HAXM installer. Run it and got this:
So, I think It's obvious that I have to enable that option but I don't know how since all i cand find isn't related to my case. No, I don't use an AMD processor, and yes, I have the "Hyper-V" option desactived in the "Turn Windows features on/off" panel.
Do you guys can help me?
EDIT: I've also desactivated the assisted virtualization option in the settings panel of Avast.
Upvotes: 16
Views: 48479
Reputation: 2397
My PC is: Intel(R) Core(TM) i5-10400
with UHD Graphics 630
, and motherboard is MSI H510M-A PRO (MS-7D22) (U3E1)
I spent a couple of days working on this problem since none of the solutions provided here (and other placed) worked for me. I was able to find a solution following this clue from the actual haxm
GitHub repository.
There we read:
HAXM was created to bring Intel Virtualization Technology to Windows and macOS users. Today both Microsoft Hyper-V and macOS HVF have added support for Intel Virtual Machine Extensions. We have therefore decided to retire the HAXM project. HAXM v7.8.0 is our last release and we will not accept pull requests or respond to issues after this.
ANSWER: What this is basically saying is that we need to fully enable Hyper-V to make this work, since the HAXM technology, as far as 2023, has been FULLY INTEGRATED into Windows. And the intel/haxm
repository is archived.
I was reading the following log while trying to install unsuccessfully Intel x86 Emulator Accelerator (HAXM installer)
from Android's SDK Manager:
Version: 7.6.5
Output folder: C:\Program Files\Intel\HAXM
Extract: checktool.exe... 100%
Execute: C:\Program Files\Intel\HAXM\checktool.exe --verbose
CPU vendor * GenuineIntel
Intel64 supported * Yes
VMX supported * Yes
VMX enabled - No
EPT supported * Yes
NX supported * Yes
NX enabled * Yes
Hyper-V disabled * Yes
OS version * Windows 10.0.22621
OS architecture * x86_64
Guest unoccupied * Yes. 0 guest(s)
The system requirements are not satisfied.
Same log as the main question.
This is the SDK window, by the way.
NOTE: As you can see, it is installed in my computer.
In my Windows 11 system, I searched for Turn Windows feature on or off
, and enabled all related Hyper-V technologies:
Keep in mind that I was not able to turn on Hyper-V Hypervisor
until after I enabled the other Hyper-V technologies and I restarted the system.
Also, you'll need to enable this technologies at firmware level, this is, the BIOS.
You may also need to enable Execute Disable Bit
(also know in some systems as either: XD, Excute Disable, No Execute, or Hardware DEP. I read about that somewhere, but I don't even how to do it in my system, and I don't remember doing it. Just keep this paragraph as a side note.
Finally, I was able to install it from the SDK:
I don't know why this Intel x86 Emulator Accelerator (HAXM installer)
installation is still required. One would assume that enabling Hyper-V
would be enough. But that's not the case. I think that this may be related to some additional settings required by the SDK.
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)".
Warning: Package "Intel x86 Emulator Accelerator (HAXM installer)" (extras;intel;Hardware_Accelerated_Execution_Manager) should be installed in
"C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager" but
it already exists.
Installing in "C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager-2" instead.
Downloading https://dl.google.com/android/repository/extras/intel/haxm-windows_v7_6_5.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager-2
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete.
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished.
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\build-tools\30.0.3\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\build-tools\34.0.0\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\cmdline-tools\latest\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\emulator\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\extras\google\usb_driver\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager-2\package.xml
Warning: Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location 'C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager-2' (Expected 'C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager')
Warning: Already observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in 'C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager'. Skipping duplicate at 'C:\Users\cwm\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager-2'
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\patcher\v4\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\platform-tools\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\platforms\android-33\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\platforms\android-34\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\system-images\android-34\google_apis\x86_64\package.xml
Parsing C:\Users\cwm\AppData\Local\Android\Sdk\tools\package.xml
Android SDK is up to date.
Running Intel® HAXM installer
Intel HAXM installed successfully!
Done
Upvotes: 1
Reputation: 126
Dell Precision 3541
I got the same error as you when trying to install HAXM, but my bios does not have an explicit setting for "VMX". This is what solved it for me :
Upvotes: 3
Reputation: 159
Upvotes: 1
Reputation: 167
This is for my asus laptop. You have to enter bios, enable VMX. Here are the steps
Thanks.
Upvotes: 15