【发布时间】:2015-12-24 18:44:43
【问题描述】:
问题
我想使用 Visual Studio Emulator for 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)
到目前为止,我已经尝试过......
- 从How to enable Hyper-V for the emulator for Windows Phone 8完成所有步骤
- VMX 和 EPT 已启用 - 使用 coreinfo.exe 检查
- SLAT 已启用 - 使用 CheckSLATStatusOfMachine.exe 检查
- 已禁用 Intel VT-d
- 在 Windows 功能中启用 Hyper-V
- 完成所有相关更改后,我已将 PC 从电源上拔下并再次尝试
- 修复 Visual Studio Emulator for Android 并运行 XdeCleanup.exe
- 禁用卡巴斯基安全软件 (我听说有时安全软件会干扰)
- 检查我是否是 Hyper-V 管理员组的成员
- 直接在 Hyper-V 管理器中成功创建并启动了新 VM (这只是为了检查我是否可以运行任何虚拟机)
系统信息
- CPU:Intel i7-4790K
- 操作系统:带有媒体中心的 Windows 8.1 Pro
- Hyper-V 管理器:v6.3.9600.16384
评论
我花了很多时间来找出解决方案,但我失败了。我错过了什么?
我看到,对于 Windows phone,他们有时会在 Hyper-V 管理器 中设置自己的虚拟开关。那是不是我也应该做的事情,应该怎么做?
编辑#1
同时:
- 我手动添加了私有和内部交换机网络(命名为“Windows Phone Emulator Private Switch”和“Windows Phone Emulator Internal Switch”,如果命名很重要)。之后重新启动,再次尝试。没用。
- 我注意到 XdeCleanup.exe 会删除手动创建的内部专用开关。
编辑#2
我已经厌倦了@John Kemnetz 建议的方法。模拟器环境启动。
编辑 #3 :: 解决方案 ☺ ::
我已经来到@John Kemnetz 在稍后的回答中建议的第二次尝试。 这些是所有步骤:
- 打开设备管理器并从网络适配器中删除了一个Intel(R) Ethernet Connection I217-V
- 然后我根本找不到网络适配器,它消失了,所以我无法重新安装网络驱动程序
- 重新启动机器后,Intel(R) Ethernet Connection I217-V 自动安装在 网络适配器 中,而且 Microsoft Hyper-V 网络交换机已安装默认微型端口。我第一次看到的东西。
- 然后我尝试了与编辑#2 中相同的控制台条目。控制台没有像编辑 #2 中那样启动。相反,我得到了这个。 好吧,至少没有错误!
- 所以我跑到 VS2015,从模板创建 Cordova 应用程序并尝试运行模拟器。在我授予所有请求的用户权限后,它成功启动!
- 然后我在 网络适配器 下看到两个新条目,它们是在进程中自动创建的。
【问题讨论】:
-
有同样的问题,通过设备管理器和所有 Hyper-V 虚拟交换机和 android 虚拟机删除适配器,然后重新启动(自动重新安装其他适配器的负载)是解决方案!感谢分享这个@JohnKemnetz ;)
标签: android visual-studio-2015 hyper-v