Visual Studio android 模拟器无法完全启动 [英] Visual studio android emulator will not start fully

查看:36
本文介绍了Visual Studio android 模拟器无法完全启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 2015 中创建了一个空白的cordova 应用程序并开始使用visual studio android 模拟器进行调试(首先使用棒棒糖,然后使用kitkat).XDE 启动,屏幕显示OS is started....一直这样,直到显示

I create a blank cordova application in visual studio 2015 and start debugging with the visual studio android emulators (first with the lollipop and then kitkat). XDE starts and the screen displays OS is starting.... It stays like that for quite a while until it displays

模拟器无法连接设备操作系统;设备未响应连接请求.某些功能可能被禁用'

关闭对话框后,它会永远留在那里,直到我杀死模拟器.杀死模拟器会触发 Visual Studio 的错误.

After closing the dialog, it stays there forever until I kill the emulator. Killing the emulator triggers an error from visual studio.

无法启动模拟设备VS Emulator Lollipop Phone".

当我打开 hyper-v 时,我看到列表中的 vm 并显示为正在运行.当我连接时,我看到控制台屏幕如下

When I open hyper-v, I see the vm in the list and shown as running. When I connect, I see the console screen as below

推荐答案

我知道这个问题已经存在一段时间了,但我刚刚为可能仍然遇到这个问题的人找到了一个新的解决方案......

I know this issue has been around for a while now, but I have just found a new solution for people who may still encounter this issue...

对于 API v 21 & 我遇到了同样的问题(卡在操作系统正在启动"上)22. API v23 图像会启动,但无法调试 - 应用程序一启动就会崩溃.

I had the same issue (stuck on "OS Is Starting") for API v 21 & 22. API v23 images would start, but could not debug - the app would crash as soon as it launched.

以下解决了问题:

  • 关闭模拟器
  • 打开 Hyper-V 管理器
  • 转到 Android 映像的设置
  • 展开处理器"配置节点
  • 转到兼容性"节点
  • 选中迁移到具有不同处理器版本的物理计算机"选项

显然这与较新的处理器架构与 Android 图像不兼容或类似的东西有关 - 并不在乎,只要它有效:)

Apparently it has something to do with newer Processor architectures being incompatible with the Android images or something like that - don't really care, as long as it works :)

这篇关于Visual Studio android 模拟器无法完全启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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