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
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 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
I following the guide here:
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin
to run Android Emulator using Windows Hypervisor Technology. I'm currently working on Azure VM D_v3 series. During debug my sample app, I've got this error:
2>emulator: CPU Acceleration: DISABLED
2>emulator: CPU Acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
2>emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
2>Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
2>CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
WHPX is for sure enabled in Windows Features. Have any idea? Is it possible with azure?
Try disabling OpenGL. It worked for me in a DSv3 VM.
It can be disabled by going to Program Files (or Program Files x86 if you're on a 64-bit machine)\Microsoft XDE\10.0.10586.0\SKUs\Android\xdesku.xml and deleting this line: GuestDisplayProvider="VsEmulator.OpenGLGuestDisplay".
If there are multiple versions under xde, pls identify which version has SKUs\Android.
Ref:
https://social.msdn.microsoft.com/Forums/en-US/d7c0bbc5-eb29-4080-8398-e55111d98c91/vs-android-emulator-cannot-boot?forum=visualstudiogeneral
Today's version of Azure VM may not have full nested virtualization capabilities enabled which may not allow Android emulator on Azure. Dsv3 or Esv3 version machines only have nested virtualization enabled. I tried and could not run Android emulator. While for now you can use Visual Studio Emulator for Android [older version of Android API]on Azure VM. Refer details for step by step guide - https://www.sanganakauthority.com/2020/04/run-android-emulator-and-android-studio.html
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.