Android Studio Emulator: WHPX: failed to enable partition

1.1k views Asked by At

I am trying to get the Android Emulator to work with my Ryzen 2700X CPU but I always get the following error:

Emulator: qemu-system-x86_64.exe: WHPX: Failed to enable partition extended X64MsrExit and X64CpuidExit hr=80070057
Emulator: qemu-system-x86_64.exe: failed to initialize WHPX: Invalid argument.

I made sure the latest Emulator version is installed and Windows Hypervisor, Hyper-V and virtualization in BIOS are all enabled. I searched for answers for a while but could not find any solution to this problem.

EDIT: After deleting the Nexus5X device and re-creating it with Pie x86 it worked fine. Make sure to check the following:

  • activate Visualization in your BIOS (SVM Mode)
  • Android Studio and Emulator are up-to-date
  • Windows Hypervisor and Hyper-V-Hypervisor in Windows Features are activated (uncheck Hyper-V-Services)
  • run Android Studio as Administrator
1

There are 1 answers

2
AudioBubble On

I think you've done all the setups well.

but Do you use Windows 1903 version? That version has an issue for Ryzen CPU Virtualization.

as a solution

You can update the Windows version

Or Revert to the previous version.

Or you can update it to a preview version.