简体   繁体   English

Android模拟器:无法初始化WHPX

[英]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: 我正在尝试让Android模拟器在Ryzen CPU上运行,但仍然出现错误:

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. 我同时启用了Hyper V和Windows Hypervisor。 I've also made sure my BIOS settings are correct, and virtualization is shown as enabled in task manager. 我还确保我的BIOS设置正确,并且虚拟化在任务管理器中显示为已启用。 I could really use some help, thanks. 我真的可以帮忙,谢谢。

I had the same issue when emulating a Nexus5X. 我在模拟Nexus5X时遇到了同样的问题。 After deleting the device and re-creating it with Pie x86 it worked fine. 删除设备并使用Pie x86重新创建它后,它可以正常工作。 Make sure to check the following: 确保检查以下内容:

  • activate Visualization in your BIOS (SVM Mode) 在您的BIOS中激活可视化(SVM模式)
  • Android Studio and Emulator are up-to-date Android Studio和Emulator是最新的
  • Windows Hypervisor and Hyper-V-Hypervisor in Windows Features are activated (uncheck Hyper-V-Services) Windows功能中的Windows Hypervisor和Hyper-V-Hypervisor已激活(取消选中Hyper-V-Services)
  • run Android Studio as Administrator 以管理员身份运行Android Studio

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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