即使安装并启用了Hyper-V,Visual Studio中的Android模拟器也不会启动

问题描述 投票:1回答:1

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

[当我尝试启动我的仿真设备时,我收到此消息:

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 FeaturesCMD

android xamarin visual-studio-2019 hyper-v
1个回答
0
投票

如果已更改Windows Hypervisor Platform选项,

enter image description here

然后您需要重新启动计算机,它就可以工作。

enter image description here

最后一次创建设备时,通过单击Processor下拉菜单为该虚拟设备选择处理器类型。选择x86将提供最佳性能,因为它使仿真器可以利用hardware acceleration

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.