我正在使用Visual Studio 2015 Enterprise和新的Android Emulator。它工作了一段时间,但突然间它停止了工作。
VS中的输出始终显示:
1>Starting emulator: VS Emulator 5.1" Lollipop (5.1.1) XXHDPI Phone
1>Validating emulator arguments...
1>Determining if emulator is already running...
1>Preparing virtual machine...
1>Launching emulator...
出现模拟器窗口,但它卡在黑色的“正在加载...”屏幕上。我在任务管理器中看到xde.exe
消耗的CPU功率在25%到32%之间。 Windows事件日志中没有任何条目可以告诉xde
或Hyper-V。
我已根据Microsoft在Troubleshooting the Visual Studio Emulator for Android页面上的建议删除了Hyper-V-Manager中的所有虚拟计算机。
有谁知道如何让模拟器再次运行?
答案 0 :(得分:2)
如果您遇到同样的问题,可以尝试通过以下步骤解决问题:
<强> 1。删除所有虚拟交换机
按照John Kemnetz在his answer中所说的那样试试:
转到Hyper-V Manager,并通过Virtual删除所有虚拟交换机 Switch Manager 2)在Hyper-V Manager中,删除所有VM。 3)重启 电脑。 4)启动模拟器。
<强> 2。禁用网络接口
如果这不起作用,那么试着按照Jason Smith在评论中描述的方式进行:
禁用Windows phone vswitch以外的网络接口。然后 模拟器启动后,将其重新打开。如果你删除它们Xde 将重新创建它们,您希望它们在控件中创建但禁用 面板。唯一可以启用的是windows phone one。
如果这不起作用(这是我的情况)那么
第3。重新安装适用于Android的Visual Studio 2015模拟器
卸载仿真器,重新启动PC并重新安装。这对我有用。但我建议首先尝试其他两个选项,因为第三个选项可能非常耗时。
答案 1 :(得分:1)
试试这个: 1)转到Hyper-V Manager,并通过Virtual Switch Manager删除所有虚拟交换机 2)在Hyper-V管理器中,删除所有VM。 3)重新启动计算机。 4)启动模拟器。
某些计算机的Windows 10更新导致虚拟交换机出现问题,并且需要从头开始重新创建模拟器。