How to verify that Android SDK emulator is running

2020-02-14 06:17发布

问题:

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.

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

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...

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

回答1:

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

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.

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