简体   繁体   中英

Android Emulator: failed to initialize WHPX

I am trying to get the Android Emulator to work on my Ryzen CPU, but I keep getting the 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 have enabled both Hyper V and Windows Hypervisor. I've also made sure my BIOS settings are correct, and virtualization is shown as enabled in task manager. I could really use some help, thanks.

I had the same issue when emulating a Nexus5X. After deleting the 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

尝试以管理员权限打开Android Studio。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM