3

我正在尝试通过 Visual Studio 2019 运行 android 模拟器来测试我使用 Xamarin 创建的应用程序。我按照文档中概述的步骤启用和安装 Hyper-V:文档

当我尝试启动我的模拟设备时,我收到以下消息:

Starting emulator pixel_3_pie_9_0_api_28 ...
1>Waiting for runtime checks to complete
Emulator pixel_3_pie_9_0_api_28 cannot be started.
Runtime checks completed
1>Starting deployment to pixel_3_pie_9_0_api_28 ...
1>Starting emulator pixel_3_pie_9_0_api_28 ...
1>Launching the Android Emulator pixel_3_pie_9_0_api_28 on Hyper-V needs the Windows Hypervisor Platform installed and enabled.
1>
1>Please configure it using the Turn Windows features on or off dialog.
1>
Build has been canceled.

我不确定为什么会发生这种情况,因为我安装并启用了 Hyper-V。任何想法都会很棒!

相关图片: Windows 功能 CMD

4

1 回答 1

2

如果更改了Windows Hypervisor Platform选项,

在此处输入图像描述

然后你需要重新启动计算机,然后它才能工作。

在此处输入图像描述

最后在创建设备时,通过单击处理器下拉菜单选择此虚拟设备的处理器类型。选择x86将提供最佳性能,因为它使仿真器能够利用硬件加速

在此处输入图像描述

于 2019-11-08T06:01:54.327 回答