Android 模拟器与 Android Studio 中的 Hyper-V 不兼容(未安装 Hyper-V)

eri*_*mon 5 windows-10 android-studio

最近在用Android Studio开发一个app,Android模拟器不行。它总是显示问题:

Android 模拟器与 Hyper-V 不兼容

但是我在程序功能中关闭了Hyper-V,但它仍然是一个问题。我整个星期都被困在这个问题上。

有谁知道如何解决这个错误?

小智 7

If you're running Windows 10 in an enterprise environment, there's a chance the problem could be new "virtualization based security" features in Windows. If Device Guard or Credential Guard are enabled on your machine, that machine is using Hyper-V's hypervisor.

To check if that's the case, follow the instructions on this page or use the Device Guard and Credential Guard hardware readiness tool. Copied and pasted:

  1. Click Start, type msinfo32.exe, and then click System Information.
  2. Click System Summary.
  3. Confirm that Credential Guard is shown next to Device Guard Security Services Running.

Typically, these features are enabled via Group Policy. If that's actually the root cause of the issue, you'll need to work within your organization to opt out of those policies.

最后一点——我不建议禁用 Intel VT-x(如 Will P 所建议的),因为我相信 HAXM(Android 模拟器使用的管理程序)需要 VT-x。

全面披露——我在微软的 Hyper-V 团队工作。


小智 0

在华硕 Z170M-PLUS 主板和其他很可能的主板上\n需要通过 BIOS 禁用 Intel\xc2\xae 虚拟化技术才能停止 Hyper V 服务。\n1. 重新启动计算机。\n2. 按删除或任意键进入 BIOS\n3. 进入高级模式并选择高级选项卡\n4. 向下滚动到 Intel\xc2\xae 虚拟化技术并选择禁用\n5。保存并重启机器

\n\n

BIOS 截图

\n