简体   繁体   English

适用于Android的Visual Studio模拟器

[英]Visual Studio Emulator for Android

In Visual Studio 2015, there was a built-in emulator for Android that was Hyper-V compatible (I didn't have to disable Hyper-V to use it), but in Visual Studio 2017 it's no longer there. 在Visual Studio 2015中,有一个与Hyper-V兼容的Android内置模拟器(我不必禁用Hyper-V即可使用它),但在Visual Studio 2017中不再存在。

Is there a way to add the Hyper-V compatible emulator to Visual Studio 2017? 有没有办法将与Hyper-V兼容的模拟器添加到Visual Studio 2017?

When you select the "Mobile development with .NET" workload for Visual Studio 2017 it by default selects "Google Android Emulator (API Level 23)" and "Intel Hardware Accelerated Execution Manager HAXM" components, and NOT "Visual Studio Emulator for Android". 当您为Visual Studio 2017选择“使用.NET进行移动开发”工作负载时,默认情况下会选择“ Google Android Emulator(API级别23)”和“ Intel硬件加速执行管理器HAXM”组件,而不是“ Visual Studio Emulator for Android” 。 I am unsure of the reasoning for this being the default. 我不确定这是默认设置的原因。

These are optional components for the workload so you can unselect them either from the right summary pane on the Workloads tab or the Individual components tab of the installer. 这些是工作负载的可选组件,因此您可以从安装程序的“工作负载”选项卡或“单个组件”选项卡的右侧摘要窗格中取消选择它们。 If you're not using them uninstalling them will save 18GB. 如果您不使用它们,则卸载它们将节省18GB。 To install the "Visual Studio Emulator for Android" component select it under the "Individual components" tab of the installer. 要安装“ Visual Studio Emulator for Android”组件,请在安装程序的“单个组件”选项卡下选择它。

Since you've already installed just re-launch the Visual Studio Installer in your start menu and hit modify on your existing installation. 由于您已经安装了,只需在开始菜单中重新启动Visual Studio安装程序,然后在现有安装上单击“修改”即可。

Note: After I uninstalled the two components I realized it didn't remove the actual AVD's, android images or HAXM so I had to do that via AVD Manager and SDK Manager (SDK Manager I had to relaunch as administrator after the first delete of 3 packages failed). 注意:卸载这两个组件后,我意识到它并没有删除实际的AVD,Android映像或HAXM,因此我必须通过AVD Manager和SDK Manager(SDK Manager,在第一次删除3后必须重新启动为管理员的身份)包失败)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM