Android 模拟器声称“WHPX 未配置”,崩溃

Android Emulator claims “WHPX is not configured”, crashes

从 Visual Studio 2019 年为 Xamarin 开发启动的 Android 模拟器在启动前抛出此消息:

WHPX is not configured

Turn on "Windows Hypervisor Platform" feature to switch to the Native Hypervisor and accelerate your emulator.

尽管安装了 Hyper-V,但根据 Microsoft documentation

这可能与模拟器在一段时间后崩溃且没有错误消息有关,或者在从 Android 设备管理器启动时显示此消息:

Please check if you can update your video driver. If it doesn't help, try to Edit the AVD and set "hw.gpu.mode=off".

这是在以前使用 运行 模拟器的机器上,只是 Windows.

的全新安装

错误消息实际上是正确的。在较新版本的 Windows 上,“Windows 管理程序平台”(WHPX) 是 Windows 功能列表中的一项单独功能。

甚至 Microsoft docs 也已更新以提及这一点。 (虽然我在处理这个问题的时候并没有在上面花费太多时间,唉。)