I am using Visual Studio 2017 / Xamarin in windows 7 ultimate platform and using the Android Device Manager to run Android emulator in it.
When I try to run it says "Intel HAXM is not compatible with Hyper-V" and the Details are "You are attempting to accelerate the emulator using Intel’s HAXM, but you have Hyper-V enabled in your system settings. Disable Hyper-V by running: bcdedit /set hypervisorlaunchtype off in an elevated command prompt and restart your computer before trying again."
I have checked and in my system Hyper-V is not installed.
I also have run the bcdedit /set hypervisorlaunchtype off and after checking it is varified that the hypervisorlaunchtype is off now.
Also I have checked using system infomation and other tools and Hyper-V is not running.
Also I checked that HAXM is running by using the command "sc query intelhaxm" and shows it is running with State = 4
It looks like that Android Device Manager (Virtual Device) is checking some other parameter to detect if Hyper-V is running. Don't know if this is a registry setting or some other program is using intel VT (virtualization technology) and AVD is giving this message because of that. I have done lot of research on this, installed the latest HAXM etc. but no luck. Can someone help me on this. Thanks in advance.
De-select Hyper V from windows feature like this.
Hyper v
Related
I am running into an issue where I can't start the xamarin android emulator, it says:
Device error: WARNING | unexpected '-prop' value ('monodroid.avdname=pie_9_0_-_api_28'), only 'qemu.' properties are supported
WARNING | unexpected '-prop' value ('emu.uuid=c23d7e88-c1e4-4283-bb2b-e2632b5c3c16'), only 'qemu.' properties are supported
ERROR | x86 emulation currently requires hardware acceleration!
CPU acceleration status: Hyper-V detected and Windows Hypervisor Platform is not available. Please either disable Hyper-V or upgrade to Windows 10 1803 or later. To disable Hyper-V, start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot. If u
More info on configuring VM acceleration on Windows:
https://developer.android.com/studio/run/emulator-acceleration#vm-windows
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.
I need Hyper-V to be enabled for the emulator acceleration, otherwise if i disable it, the apps on the emulator run painfully slowly. The thing is I had hyper-v enabled before, and all of my emulators ran just fine with it, then suddenly I started getting this error. Both Hyper-V and Windows Hypervisor Platform are enabled in windows features. I also have HAXM accelerator installed for the android. I also tried running the following commands: bcdedit /set hypervisorlaunchtype auto and dism /online /enable-feature /feature-name:Microsoft-Hyper-V -All; both commands resulted in "operation completed successfully". I also tried running "C:\Program Files (x86)\Android\android-sdk\emulator\emulator-check.exe" accel, and this is what I got:
accel:
0
Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.WHPX (10.0.19042) is installed and usable.
accel
I am not sure what is going on, and why my emulators suddenly can not run with Hyper-V enabled. Has anyone faced this issue before? Any help would be much appreciated. Thanks
Uninstall HAXM; it reads: WHPX (10.0.19042) is installed and usable.
This is the "Windows Hypervisor Platform" ...
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows
It's very weird but still to this day I can't start the android emulator in VS2019. However, I found a workaround - I can start the android emulator in VS2017, so I start it there and run the app from VS2019. Extremely weird, but if anyone is having that issue and needs a workaround urgently, that's what you can do.
I don't know if this is helpful at all, but as for today, that's the only solution I found.
(Also, consider switching to VS2022. Seems to work fine there as well)
I just installed the Windows 10 anniversary update and now I can't start my Android emulators.
Android Studio shows the following message.
Android Emulator is incompatible with Hyper-V
But as you can see in the following image, Hyper-V is disabled.
I already rebooted the machine. I also tried running the following command from an elevated command prompt:
bcdedit /set hypervisorlaunchtype off
No luck.
Tried launching the emulator from a command prompt fails with the following message:
emulator -avd Nexus_5_API_23
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
Has anyone run into this issue?
The problem in my case is that I had Credential Guard and Virtualization Based Security.
I disabled the mentioned Windows 10 features using Device Guard and Credential Guard hardware readiness tool.
Unzip the tool, in a Powershell command go to the folder where you unzipped the tool and type:
DG_Readiness_Tool_v2.0.ps1 -Disable
After rebooting I was able to reinstall HAXM and start my emulators.
You can turn off Hyper-V in the services menu (type "Services" in the Search thingy), and also use the Services menu to turn it back on. Even though it may not be necessary I still reboot after doing it this way.
EDIT: And also did you run Command Prompt as Admin?
EDIT2: Reinstall Intel HAXM, as #Morrison_Chang says
I've seen many posts similar to my problem, and even though I tried to do the same steps, it still didn't work.
Intel Core i7 - 2670QM CPU # 2.20GHz Windows 10
I need to create an emulator for Android Studio in order to test my apps, but it doesnt work, it says that I need Intel HAXM.
Then I try to install and says (VT-x) is not enable (like in the picture below)
Error while installing HAXM
I've already tried:
(1) Check the BIOS (there is no option in my BIOS about VT-x virtualization, but I've check with the application "coreinfo" that says its actually working on my system.
(2) Disable Hyper-V on Windows (also, I couldn't find this option on "Windows Features" on Windows 10, but I've disabled everything that says Hyper-V in Windows "Services"
(3) I've checked about AVAST.
(4) I've updated my Windows
Thank you guys!!
I just don't get the fact that Windows doesnt show the Hyper-V option, and the BIOS doesnt give VT-x option also, but the Haxm_check says:
"VT support -- yes
NX support -- yes"
You don't mention what OS you're using. Have you tried downloading separate installer rather than install thru Android studio
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
also run the bcedit commands to make sure the CPU is enabled, not just capable
bcdedit /set hypervisorlaunchtype off
bcdedit /set nx AlwaysOn
your list shows hypervisor enabled. You should go into control panel>Programs>turn WINDOWS features on/off on the left side. Then whether it's on or off you should still see the HyperV checkbox. Make sure nothing is checked. If it's really off, you should be able to search for HyperV Manager and not find it.
I have a fresh install of android studio on Windows 10, with all the packages for android api 22. When I run the emulator I get the following message
C:\Users\admin\AppData\Local\Android\sdk\tools\emulator.exe -avd foo -netspeed full -netdelay none
emulator: device fd:928
HAX is working and emulator runs in fast virt mode
I can see the emulator in the task manager, but it doesn't actually load.
I've been looking for answers to why it doesn't load and I've made sure all the ram settings are correct, but I don't understand why the emulator won't load.
Thanks
HAXM, the Intel Android Virtualization Technology is incompatible with Hyper-V. Turn off Hyper-V and give it a go again. Hyper-V will often be installed if you have installed Visual Studio with Windows Phone tools.
Or from an admin command prompt run the following.
Note to get an admin cmd prompt, right-mouse the windows icon, click Command Prompt (Admin ).
To turn off Hyper-V run this:
bcdedit /set hypervisorlaunchtype off
and then reboot
To turn Hyper-V back on, run this:
bcdedit /set hypervisorlaunchtype auto
And then reboot
You can turn off Hyper-V in the services menu (type "Services" in the Search thingy), and also use the Services menu to turn it back on. Even though it may not be necessary I still reboot after doing it this way.
Blog post on this here - http://www.devfish.net/post/2015/08/18/error-x86-emulation-currently-requires-hardware-acceleration-android-on-windows.aspx
Healy in Tampa
This has a very simple solution only if the installation process is complete and still the emulator is not launching, Solution: Just try to use older API version or any older stable android API version. In my case, the latest version I was having was API-31, but the API-28 worked for me. Change you android API to any older version Try it. This worked for me.
my avd is not running on eclipse. sometimes it says, haxm is not installed. sometimes just a black screen appears and nothing happens. why is this happening? i tried to reinstall but nothing happened. but it was working few days ago and suddenly this is happening. i cant run my apps on emulator. how to fix this?? i am using a windows 10 tech preview 64 bit. i have tried to run eclipse on my laptop windows 7 64 bit with different version, same problem. so there must be some technical problem that i dont know, pls help.....
HAXM, the Intel Android Virtualization Technology is incompatible with Hyper-V. Turn off Hyper-V and give it a go again. Hyper-V will often be installed if you have installed Visual Studio with Windows Phone tools. Or maybe Hyper-V is just turned on somehow?
Or from an admin command prompt run the following. Note to get an admin cmd prompt, right-mouse the windows icon, click Command Prompt (Admin ).
To turn off Hyper-V run this: bcdedit /set hypervisorlaunchtype off and then reboot
To turn Hyper-V back on, run this: bcdedit /set hypervisorlaunchtype auto And then reboot
You can turn off Hyper-V in the services menu (type "Services" in the Search thingy), and also use the Services menu to turn it back on. Even though it may not be necessary I still reboot after doing it this way.
Blog post on this here - Blog post on this here - http://www.devfish.net/post/2015/08/18/error-x86-emulation-currently-requires-hardware-acceleration-android-on-windows.aspx
Healy in Tampa
Android emulators are not super reliable. Can you try using genymotion (http://www.genymotion.com/). It is free for personal use and it is super fast.
Open the Android SDK Manager from Eclipse tab "Window", check the box at the very bottom in the Extra folder that says "Intel x86 Emulator Accelerator (HAXM installer)" and click Install package. I think you are using an emulator with VM Acceleration.