问题
我想使用Visual Studio模拟器来运行Android应用程序,但每次尝试启动时都会失败。
日志的最后部分是:。
27.9.2015. 11:10:38: [Informational] ===== Session Started =====
27.9.2015. 11:10:38: [Informational] Microsoft Windows NT 6.3.9600.0 Windows 8.1 Pro with Media Center
27.9.2015. 11:10:38: [Informational] Virtualization type: UnknownOrNotVirtual
27.9.2015. 11:10:38: [Informational] Virtualization Version: alaska - 1072009
27.9.2015. 11:10:38: [Informational] Virtualization Serial Number: to be filled by o.e.m.
27.9.2015. 11:10:38: [Informational] Virtualization Product: z97-d3h-cf
27.9.2015. 11:10:38: [Informational] Display Adapter 0: Name: NVIDIA GeForce GTX 960, Version: 10.18.13.5362
27.9.2015. 11:10:38: [Informational] Display Adapter 1: Name: Intel(R) HD Graphics 4600, Version: 10.18.14.4170
27.9.2015. 11:10:39: [Informational] Reinitializing installed profiles.
27.9.2015. 11:10:39: [Informational] Installed profiles initialized. Devices: 3 Platforms: 2
27.9.2015. 11:10:39: [Informational] Reinitializing installable profiles.
27.9.2015. 11:10:39: [Informational] Installable profiles initialized. Devices: 30 Platforms: 4
27.9.2015. 11:10:41: [Informational] Waiting to launch device...
27.9.2015. 11:10:41: [Informational] Launching Device: 10.1" Lollipop (5.1.1) XHDPI Tablet
27.9.2015. 11:10:41: [Informational] Validating emulator arguments...
27.9.2015. 11:10:41: [Informational] Determining if emulator is already running...
27.9.2015. 11:10:41: [Informational] Preparing virtual machine...
27.9.2015. 11:10:47: [Critical] An internal virtual network switch is required for emulated devices to run.
27.9.2015. 11:10:47: [Critical] XDE Path: C:\Program Files (x86)\Microsoft XDE\10.0.10240.0\xde.exe
27.9.2015. 11:10:47: [Critical] XDE Arguments: /sku Android /displayName "VS Emulator 10.1\" Lollipop (5.1.1) XHDPI Tablet" /memSize 2048 /diagonalSize 10.1 /video "2560x1600" /vhd "C:\Users\Miro\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\10.1_Lollipop_(5.1.1)_XHDPI_Tablet\image.vhd" /name "VS Emulator 10.1-inch Lollipop (5.1.1) XHDPI Tablet.miro" /noStart /silent
27.9.2015. 11:10:47: [Critical] XDE Exit Code: CouldntCreateInternalSwitch (16)
到目前为止我已经尝试过...
- 完成了如何启用Windows Phone 8模拟器的Hyper-V中的所有步骤
- 使用coreinfo.exe检查,已启用VMX和EPT
- 使用CheckSLATStatusOfMachine.exe检查,已启用SLAT
- 禁用了Intel VT-d
- 在Windows功能中启用了Hyper-V
- 完成所有相关更改后,我拔掉了电源并重试
- 修复了Visual Studio Emulator for Android并运行了XdeCleanup.exe
- 禁用了Kaspersky Internet Security (我读到有时安全软件会干扰)
- 检查是否是Hyper-V管理员组的成员
- 成功创建并在Hyper-V管理器中直接启动了新的虚拟机 (这只是为了检查我能否运行任何虚拟机)
系统信息
- CPU: Intel i7-4790K
- 操作系统: Windows 8.1 Pro with Media Center
- Hyper-V管理器版本: v6.3.9600.16384
评论
我已经花了很多时间去寻找解决方案,但是我失败了。我错过了什么?
我看到Windows手机有时会在Hyper-V管理器中设置自己的虚拟交换机。我也应该这样做吗?怎么做?
编辑 #1
与此同时:
- 我手动添加了私有和内部交换网络(名称为“Windows Phone模拟器私有交换”和“Windows Phone模拟器内部交换”,如果命名有关系)。之后重新启动,再次尝试。没有效果。
- 我注意到会删除手动创建的内部私有交换。
编辑#2
我尝试了@John Kemnetz建议的方法。仿真器环境开始运行。
编辑#3 :: 解决方案 ☺ ::
我后来尝试了@John Kemnetz提出的第二种方法。 以下是所有步骤:
- 打开设备管理器,从网络适配器中删除唯一的Intel(R) Ethernet Connection I217-V
- 然后我再也找不到网络适配器了,它消失了,所以我无法重新安装网络驱动程序
- 重启计算机后,不仅Intel(R) Ethernet Connection I217-V自动安装在网络适配器中,还自动安装了Microsoft Hyper-V Network Switch Default Miniport。这是我第一次看到的东西。
- 然后我尝试像编辑#2中那样输入控制台条目,但控制台没有像编辑#2中那样启动。相反,我得到了这个。 好吧,至少没有错误!
- 于是我跑去VS2015,从模板创建Cordova应用程序,并尝试运行模拟器。在我给出所有请求的用户权限后,它成功地启动了!
- 然后我发现在进程中自动创建了两个新条目,在网络适配器下。