How to enable VMX in the HAXM installation? - android-studio

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.

This is for my asus laptop.
You have to enter bios, enable VMX.
Here are the steps
Press Del or F2 into BIOS after power on.
Press F7 for getting into Advanced Mode.
Click CPU configurations in Advanced.
You will see Intel (VMX) Virtualization Technology, enable it.
Thanks.

This is for ThinkPad
Press "Enter" on system startup & enter BIOS
Click on Security
Click on Virtualization
Enable Intel Virtualization Technology
F10 (save & exit)

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 :
Ensure in Bios all "Virtualization" features are turned on.
Go to "Turn Windows features On/Off" and turn off (uncheck) Hypervisor.
Open a cmd prompt as admin and run : bcdedit /set hypervisorlaunchtype off
Restart and try HAXM install again.

Related

Trouble installing HAXM in Android Studio (Windows 10)

Brand new to app development and am having a bit of trouble activating an Android Virtual Device (AVD) for Android Studio (Windows 10). I am trying to install HAXM but receive the attached message.
Upon going into my /installed programs/ directory to uninstall Microsoft Hyper-V, the program is not listed. Would the Hyper-V program be listed under another name, or rather, could anyone please provide feedback as to resolving this message? Any feedback would be greatly appreciated!
For AMD system, you can use Windows Hypervisor Platform (WHPX) under Windows 10 since Version 1803:
To enable Windows Hypervisor Platform (WHPX) do the following steps:
From the Windows desktop, right-click the Windows icon and select Apps and features.
Under Related settings, click Programs and Features.
Click Turns Windows Features on or off.
Select Windows Hypervisor Platform
click ok and reboot.
Now create a new Android Virtual Device (AVD).
Yes the same was here too,
Ok there are 2 ways of solving this ,
First you can go to BIOS and disable the Hyper V and enable the VT x for intel. If you had not the VTx or with disabling Hyper v nothing has solved then come to Second solution.
The second is there is not a solution available for you and your computer just like me. Your cpu and computer cant install HAXM which mean you cant install and run emulator , but hang on, google has added new property to emulators to run without HAXM and you need to install those package of SDK api which has Amd virtualization or non HAXM, also even this one has not helped me, so if you were like me then you can use physical device for testing or installing linux instead of windows and use Hyper v to run emulator in android studio instead of HAXM, and i prefer Lubuntu cause of speed it will gives you if you wantes to install.

Emulator error : x86 emulation currently requires hardware acceleration

This error happened under Android studio 3.4. I'm using Windows 10. I didn't find any way to fix it on the other threads asking the same question.
Especially, I've installed Intel HAXM manually, my BIOS settings are allowing virtualization, it can't be a problem involving my anti-virus as I tried to run my project while it was disabled, I've also rebuild my project each time.
What am I missing? Thanks already to all those who will answer me.
Solved. I had to go change the advanced settings of the emulated software, changing the "graphics" value by "software ..." instead of "hardware ...".

This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V error

I'm using Android Studio on windows 10 currently. However, as I try to install HAXM via android studio, there is an error which always pops up "This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed".
The weird thing is that when I checked my installed programs, HAXM is already installed by default. I have no idea why I am not able to upgrade. I'm using a decent gaming laptop with an 8th Gen Intel Core i7 processor.
Things I have tried :
I have already went into my bios and made sure all virtualization options were enabled and went to "Windows Features"and unchecked Windows Hyper-visor Platform but to no avail as the problem still persists
I recently had the same issue, and even though Intel virtualization was enabled in the BIOS and my Windows 10 doesn't have the Hyper-V option because it's the home edition, I wasn't able to use Android Studio emulators/virtual machines or upgrade/reinstall Intel HAXM. I then found out that an enabled feature on Windows Defender was the cause of the problem. Try the following steps (sorry, my device is in portuguese so the options might have another naming other than the direct translation to english):
In Windows Defender, go to Device Security (The one with a laptop icon).
Choose Kernel Isolation Details (first option).
And disable the Memory Integrity option if it isn't disabled already (in case it is, I'm sorry but this solution won't help you out).
If you have to change the option to disabled, restart your computer and try upgrading HAXM via Android Studio again.
I hope this helps. :)
In my case, after disabling Hyper-V in Windows Features I had to turn the antivirus (Kaspersky) off to install Intel x86 Emulator Accelerator (HAXM) 7.5.6 on Windows 10 Pro (1909).
IF u have AMD CPU you have to install Driver for AMD processor Check img

Cannot install HAXM for Android on Windows 10 64bit

I have an Asus ROG Laptop.
at the boot setup, I see the option for virtualization
In the system, Hyper-v is disabled, by unchecking the features and running dism.exe /Online /Disable-Feature:Microsoft-Hyper-V at PowerShell.
but yet I get the installation Error
And also I should mention that Intel Processor Identification Utility App is showing
I still can't comment, but do you have avast or other antivirus software, sometimes it interferes with hyper v.
Otherwise, you could disable and reenable vtx again.
you have to enable VT-x (virtualization technology) and enable feature XD (Disable Execution Bit) in the UEFI/BIOS... then it should be possible to install HAXM and use it. one can get there, by pressing DEL or F2 before the boot beep (the key may vary, depending on the mainboard vendor).
I've just seen the screenshot; enabling CPU feature XD should solve the issue.
Intel HAXM requires the Android SDK to be installed (version 17 or higher). For more information, refer to the Android developer website (https://developer.android.com/studio/index.html).

Installing emulator: hardware virtualization

When trying to install the Microsoft Emulator - Windows 10 for mobile I got the following error. I have Intel VT enabled in my BIOS setting!
I need to run an UWP application on my Windows 10 Pro; how can I fix this?
A typical error that many of us do when enabling Hyper-V is doing so from the BIOS and expecting it will work.
Hyper-V needs to be enabled on two different points:
The BIOS settings.
The operative system
The fun thing with Visual Studio is that, if hyper-v is not enabled on the OS, it still says that needs to be done on the BIOS settings.
The BIOS settings differ from manufacturers and versions, but the OS remains the same.
It is done so from the Program and Features option in the Control Panel; select the Turn Windows features on or off and then select the Hyper-V options from the dropdown.
Step 1:
Step 2:
Take into account that you need to be an Administrator in your PC as hyper-v needs to add users to the Admin group.
If you're working on a controlled environment, these options may be disabled by your company administrator.
Once everything is in place, you will need to reinstall the VM.

Resources