为什么 Visual Studio 2019 在“适用于 Android 的 Visual Studio 模拟器”中启动后不显示模拟器?

w00*_*977 2 visual-studio xamarin.android xamarin xamarin.forms visual-studio-emulator

我最近在家中的电脑上卸载了 Visual Studio 2017 Community 版并安装了 Visual Studio 2019 Community 版。

由于此处描述的问题,我从未设法使硬件加速工作:https://superuser.com/questions/1482586/cannot-launch-an-x86-android-emulator-using-hyperv-but-can-with- haxm-为什么

但是,使用 Visual Studio 2017,我可以在“开始”菜单中使用“Visual Studio Emulator for Android”,如下所示:

在此输入图像描述

我将启动其中一个模拟器,它将出现在 Visual Studio 2017 中进行调试,如下所示:

在此输入图像描述

但是,在“适用于 Android 的 Visual Studio 模拟器”中启动后,Visual Studio 2019 不会在 Visual Studio 中显示模拟器。我需要配置什么才能使其正常工作吗?

Ana*_*ish 5

我在开发者社区找到了您问题的答案

\n\n

请看看@Pierce Boggan的评论

\n\n
\n

引用

\n\n

Visual Studio 2019 中已弃用适用于 Android 的 Visual Studio 模拟器。更多信息可在此处获取:

\n\n

https://learn.microsoft.com/en-us/visualstudio/porting/port-migrate-upgrade-visual-studio-projects-2019?view=vs-2017

\n\n

对于想要开发 Android 应用程序但对 Hyper-V 有要求的开发人员,\n 我们与 Google 合作,\n 在官方 Android 模拟器中引入了对 Hyper-V 加速的支持。这意味着您可以将 Google\xe2\x80\x99s Android 模拟器与其他基于 Hyper-V\n 的技术并排使用,包括 Hyper-V 虚拟机、Docker 工具、HoloLens 模拟器等。这也意味着任何在 Windows 上使用 Hyper-V 的 Android 开发人员都可以使用快速的 Android 模拟器,该模拟器将始终支持最新的 Android API、开箱即用地使用 Google Play 服务,并且可以正常工作具有 Android 模拟器中的所有功能,包括相机、地理定位和快速启动。

\n\n

有关配置的更多信息可在此处找到:

\n\n

https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows#acceleating-with-hyper-v

\n
\n