【发布时间】: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