【问题标题】:How to open Google Android Emulator in Visual Studio 2017如何在 Visual Studio 2017 中打开 Google Android 模拟器
【发布时间】:2018-07-12 09:44:15
【问题描述】:

我最近从 Visual Studio Installer 下载了 Google Android Emulator。在此之前,我使用的是适用于 Android 的 Visual Studio Emulator。但是 Visual Studio Emulator 没有 API 25,所以我决定下载 Google Android Emulator。

Image of downloaded Google Android Emulator in Visual Studio Installer

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

请告诉我如何在 VS17 中打开 Google Android Emulator。

谢谢。

【问题讨论】:

    标签: android-emulator visual-studio-2017


    【解决方案1】:

    您不仅要避免使用 VS2017 模拟器,而且要避免使用其内置的 Android SDK,它们已经完全过时了。

    首先,install the Android SDK tools v24 (for the GUI) then update the emulators to v27

    之后,返回 Visual Studio,转到 Tools > Options > Tools for Apache Cordova > Environment Variables overrides 并将 ADT_HOME 设置为使用 SDK Installer 安装 Android SDK 的路径以前

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

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

    【讨论】:

    • 非常感谢。对我来说效果很好
    猜你喜欢
    • 2017-07-31
    • 2019-08-13
    • 1970-01-01
    • 2017-07-23
    • 2018-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-11
    相关资源
    最近更新 更多