Visual Studio Preview 2015 缺少“VS 模拟器 Android 手机”

Posted

技术标签:

【中文标题】Visual Studio Preview 2015 缺少“VS 模拟器 Android 手机”【英文标题】:Visual Studio Preview 2015 is missing "VS Emulator Android Phone" 【发布时间】:2015-01-10 12:35:16 【问题描述】:

我下载并安装了新版本的 VS 预览版。

我想试用新的 android 模拟器并创建了一个新的 Cordova 项目。我期待此屏幕截图中列出了类似的选择:

但是,我只看到了前五个(设备、Android 模拟器、Ripple ...),但缺少 VS Emulator Android 手机和 VS Emulator Android 平板电脑。

如果我尝试使用选项“Android Emulator”运行应用程序,我会在输出控制台中收到以下错误:

2>    WARNING : no emulator specified, defaulting to MonoForAndroid_API_10
2>  Waiting for emulator...
2>  emulator: ERROR: This AVD's configuration is missing a kernel file!!

Android 模拟器应该包含在 VS 2015 预览版中,还是我必须安装其他东西?

【问题讨论】:

【参考方案1】:

适用于 Android 的 Microsoft Visual Studio Emulator 由安装 Microsoft Visual Studio 2015 Preview 后应弹出的辅助安装程序安装。该列表中应该有一个需要检查的项目。

如果您可以在“添加/删除程序”中验证“Microsoft Visual Studio Emulator for Android”已安装并且您正在运行 Windows 8/8.1 Pro 64 位或更高版本,我们将不胜感激。 Microsoft Visual Studio Emulator for Android 需要在机器上安装 Hyper-V。

从您提供的错误中也可以看出,您的 Android SDK 安装中可能缺少某些项目。请转到 C:\Program Files (x86)\Android\android-sdk 并以管理员身份运行 SDK Manager.exe 并确保在 Android 4.4.2 (API 19) 下,ARM EABI v7a 系统映像和 Intel x86 Atom安装系统映像以及 SDK 平台。这些对于默认的 Google Emulator 是必需的

谢谢

--皮尔森

【讨论】:

感谢您的回复。我正在运行 Windows 7 Pro SP1,这会阻止我运行模拟器吗?通过重新安装 VS 预览版,我设法找到了我之前错过的辅助安装程序,但是在运行选项方面没有任何变化。 Android SDK manager 显示我已经安装了 4.4.2 (API 19)。 目前 Windows 7 不支持 VS Emulator for Android,因为 Windows 7 不支持 Hyper-V。更多详细信息可以在 blogs.msdn.com/b/visualstudioalm/archive/2014/11/12/… 的“当前限制”部分找到。跨度>

以上是关于Visual Studio Preview 2015 缺少“VS 模拟器 Android 手机”的主要内容,如果未能解决你的问题,请参考以下文章

微软发布了Visual Studio 2022 Preview 1 以及.NET 6 Preview 5

Visual Studio 2022 Preview 3和2019 16.11发布

Visual Studio 2017 for Mac Preview

visual.studio.15.preview5 编译器

在 razor Visual Studio 2013 Preview 中没有 razor 语法着色/无法设置断点

如何在 Visual Studio 2022 中使用 .NET 6 Preview Generic Math?