【问题标题】:Visual Studio 2015 CTP 6 android emulator invalid deviceVisual Studio 2015 CTP 6 android 模拟器无效设备
【发布时间】:2015-04-27 21:01:12
【问题描述】:

Visual Studio 2015 CTP 6 中的 android 模拟器无法启动。如果我尝试在任何 android 模拟器(KitKat 或 Lollipop、手机或平板电脑)上使用任何本机 android c++ 项目启动调试会话,我将收到错误消息:

"The device '' is invalid or not running.  Please switch to another device,  or use the Android Virtual Device (AVD) Manager to start a compatible emulator, or connect a compatible Android device."

我已经多次修复并重新安装了 Visual Studio 和 Visual Studio android 模拟器。

【问题讨论】:

  • 如果您使用其中一个 Google 模拟器(它应该会自动出现在调试下拉菜单中),它是否工作?您可以重建项目并查看是否可以修复它吗?您能否附上整个错误日志,该错误是否来自部署?
  • 一个奇怪的事情是在旧版本的 Visual Studio 2015 预览版中,我将在 Hyper-V 管理器中获得一个 android VM。情况不再如此。 3>------部署开始:项目:UnitTests.Packaging,配置:Debug x86 ------ 3>正在启动模拟器... 3>安装包时出错。设备 '' 无效或未运行。请切换到其他设备,或使用 Android Virtual Device (AVD) Manager 启动兼容的模拟器,或连接兼容的 Android 设备。 3>设备无效或未运行。
  • 是的,我可以使用 AVD,但我目前正在评估 Visual Studio 2015 的功能并想使用 Visual Studio android 模拟器。

标签: android android-emulator visual-studio-2015


【解决方案1】:

您应该会看到模拟器的 Hyper-V 条目。

您使用的似乎是 CTP6 版本的适用于 Android 的 Visual Studio Emulator(支持 KitKat 和 Lollipop)。

CTP6版本的模拟器需要配套的CTP6版本的Visual Studio 2015。首先要尝试的是在这里安装CTP6版本的Visual Studio:http://www.visualstudio.com/en-us/downloads/visual-studio-2015-ctp-vs.aspx

安装VS CTP6后,在添加删除程序(控制面板)中确认模拟器的版本号还是1.0.50219.2。

【讨论】:

  • 您好,感谢您的回复。模拟器的版本号是 1.0.50213.1。 Visual Studio 的版本号为 14.0.22609.0 D14REL。两者都是从我从 Microsoft 下载的同一个 iso 映像安装的。
  • 是的,抱歉,它是 CTP6 而不是 CTP5 iso。
猜你喜欢
  • 1970-01-01
  • 2015-01-17
  • 2015-02-19
  • 1970-01-01
  • 1970-01-01
  • 2017-08-06
  • 1970-01-01
  • 1970-01-01
  • 2015-06-29
相关资源
最近更新 更多