我正在尝试按照此网页上的说明进行操作:https://devblogs.microsoft.com/visualstudio/hyper-v-android-emulator-support/
我已到达步骤2,并下载了zip文件。但是,没有可执行文件。如何安装此预览?预览是否与此相同:https://visualstudio.microsoft.com/xamarin/?
更新
在Rajesh Sonars回答之后,这是我在Visual Studio 2019中运行的错误:
1>------ Build started: Project: App1, Configuration: Debug Any CPU ------
1>App1 -> C:\Users\bert\Desktop\Xamarin2019\App1\App1\App1\bin\Debug\netstandard2.0\App1.dll
2>------ Build started: Project: App1.Android, Configuration: Debug Any CPU ------
2> App1.Android -> C:\Users\bert\Desktop\Xamarin2019\App1\App1\App1.Android\bin\Debug\App1.Android.dll
2> No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
3>Starting deployment to my_device ...
3>Starting emulator my_device ...
3>C:\Program Files (x86)\Android\android-sdk\emulator\emulator.EXE -no-boot-anim -avd my_device -prop monodroid.avdname=my_device
3>Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.emulator: ERROR: x86 emulation currently requires hardware acceleration!
3>
3>Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
3>CPU acceleration status: HAXM is not installed on this machine
3>Emulator my_device cannot be started.
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
更新2
我的处理器是:Intel(R)Core i7 950 @ 3.07 GHz。我具有以下BIOS:P6X58D-E 0502版
我最初在BIOS中启用了两个设置:
advanced/cpu configuration/Intel(R) Virtualisation Tesc
advanced/chipset/intel vt-d configuration/intel vt-d
还有什么我需要启用的吗?我今天早上访问我的BIOS来检索这些设置(以便我可以更新我的问题),并且似乎第二个被禁用。我确实启用了它(我当时甚至拍了张照片,今天都检查了这张照片)。稍后我将尝试启用它。我想研究一下这是什么,因为更改BIOS设置时我往往会遇到BSOD。
答案 0 :(得分:0)
在 Windows上:
要试用Xamarin预览功能,您需要安装Visual Studio Preview version,该版本可以与稳定/发布的Visual Studio并排安装。
在 Mac上:您可以选择预览更新频道
观察: 如果尝试通过运行应用启动模拟器,则会出现以下错误,并且部署将被取消。
但是,如果我从“工具”>“ Android”>“ Android设备管理器”>“启动”显式启动模拟器,则它将启动,并且可以在其上进行部署和测试。