如何验证Android SDK模拟器是否在Hyper-V中运行

问题描述:

我正在使用Xamarin开发适用于android的应用程序.我正在使用Visual Studio安装程序的Xamarin软件包随附的Visual Studio 2017和Android SDK模拟器.

I am developing an app for android using Xamarin. I am using Visual Studio 2017 and the Android SDK emulator that came with the Xamarin package from the visual studio installer.

模拟器非常慢.我按照本文中的说明启用了Hyper-V加速: https://docs.microsoft.com/zh-cn/xamarin/android/get-started/installation/android-emulator/hardware-acceleration

The emulator is very slow. I followed the instructions in this article to enable acceleration with Hyper-V: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration

本文只说了如何启用Hyper-V ...

The article does not say anything about having to set up a VM or configure the emulator itself to use Hyper-V, only how to enable Hyper-V...

仿真器仍然很慢.如何验证模拟器是否正在使用Hyper-V?

The emulator is still slow. How can I verify that the emulator is actually using Hyper-V?

In Documentation Microsoft suggest to run the following command to see which Acceleration you use:

"C:\Program Files (x86)\Android\android-sdk\emulator\emulator-check.exe" accel

还请确保您使用的是最新的Windows 10 Build,Hyper-V平台仅自版本1803起可用,但不适用于较早的Windows 10版本.

Also make sure you use a recent Windows 10 Build, the Hyper-V Platform only works since Version 1803, but not in older Windows 10 Versions.

如果仍然有问题,请遵循Microsoft文档,其中显示了很多技巧.

If you still have issues, follow the Microsoft documentation, it shows a lot of tips.