如何在 Visual Studio 2017 中打开 Google Android 模拟器

How to open Google Android Emulator in Visual Studio 2017

我最近从 Visual Studio 安装程序下载了 Google Android 模拟器。在此之前,我为 Android 使用 Visual Studio 模拟器。但是 Visual Studio Emulator 没有 API 25,所以我决定下载 Google Android Emulator.

Image of downloaded Google Android Emulator in Visual Studio Installer

现在我在 VS17 的任何地方都看不到 Google Android 模拟器作为选项。

请告诉我如何在 VS17 中打开 Google Android 模拟器。

谢谢。

你不仅要避免使用 VS2017 模拟器,而且它内置的 Android SDK 都已经过时了。

第一,install the Android SDK tools v24 (for the GUI) then update the emulators to v27.

之后,return 到 Visual Studio,转到工具 > 选项 > Apache Cordova 工具 > 环境变量覆盖并设置你的 ADT_HOME 到您之前使用 SDK 安装程序安装 Android SDK 的路径

现在,您将使用从 SDK 管理器 安装的最新构建工具。如果您在 AVD 管理器 中创建了一个模拟器,它将用于模拟您的应用程序。如果您创建了多个模拟器,只需启动(从 AVD 管理器手动)所需的模拟器,然后从 Visual Studio 部署到模拟器。打开的模拟器将用于部署应用程序。

注意:更改 ADT_HOME 将导致 Visual Studio 启动 按钮更改其选项,现在您将看到 Google Android Emulator 在设备列表中。