如何在Visual Studio 2017中打开Goog​​le Android模拟器 [英] How to open Google Android Emulator in Visual Studio 2017

查看:127
本文介绍了如何在Visual Studio 2017中打开Goog​​le Android模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I recently downloaded Google Android Emulator from Visual Studio Installer. Before that i was using Visual Studio Emulator for Android. But Visual Studio Emulator does not have API 25, so i decided to download Google Android Emulator.

在Visual Studio安装程序中下载的Google Android仿真器的图像

现在,我无法在VS17中的任何位置看到Google Android仿真器作为选项.

Now i can't see Google Android Emulator as an options anywhere in VS17.

请告诉我如何在VS17中打开Goog​​le Android仿真器.

Please tell me how to open Google Android Emulator in VS17.

谢谢.

推荐答案

您不仅必须避免使用VS2017模拟器,而且必须完全避免使用其内置的Android SDK,否则它们将完全过时.

首先,安装Android SDK工具v24(用于GUI),然后将仿真器更新为v27 .

此后,返回Visual Studio,转到工具">选项">"Apache Cordova的工具">环境变量覆盖",然后将 ADT_HOME 设置为使用SDK Installer安装Android SDK的路径.以前

After that, return to Visual Studio, go to Tools > Options > Tools for Apache Cordova > Environment Variables overrides and set your ADT_HOME to the path where you have installed the Android SDK using the SDK Installer previously

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

Now, you'll be using latest build tools that you have installed from the SDK Manager. If you created a single emulator in the AVD Manager, it will be used to emulate your apps. If you created several emulators, simply launch (manually from AVD manager) the desired emulator, then deploy to emulator from Visual Studio. The opened emulator will be used to deploy the app.

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

Note: Changing the ADT_HOME will cause the Visual Studio Launch button to change its options, now you will see Google Android Emulator in the list of devices.

这篇关于如何在Visual Studio 2017中打开Goog​​le Android模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆