android管理交换机,适用于Android的Visual Studio模拟器 – 运行模拟设备需要内部虚拟网络交换机...
問題
我想使用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)
到目前為止我已經嘗試過……
>啟用VMX和EPT – 使用coreinfo.exe進行檢查
> SLAT已啟用 – 使用CheckSLATStatusOfMachine.exe進行檢查
>禁用Intel VT-d
>在Windows功能中啟用Hyper-V
>完成所有相關更改后,我已將PC從電源上拔下并再次嘗試
>修復Android的Visual Studio模擬器并運行XdeCleanup.exe
>禁用卡巴斯基互聯網安全
(我讀過有時安全軟件會干擾)
>檢查我是否是Hyper-V管理員組的成員
>直接在Hyper-V Manager中成功創建并啟動了新VM
(這只是為了檢查我可以運行任何VM)
系統信息
> CPU:Intel i7-4790K
>操作系統:帶有Media Center的Windows 8.1 Pro
> Hyper-V Manager:v6.3.9600.16384
評論
我花了很多時間找出解決方案,但我失敗了.我錯過了什么?
我看到,對于Windows手機,他們有時會在Hyper-V管理器中設置自己的虛擬交換機.這是我應該做的事情,應該怎么做?
編輯#1
同時:
>我手動添加了專用和內部交換機網絡(如果命名很重要,則命名為“Windows Phone Emulator Private Switch”和“Windows Phone Emulator Internal Switch”).之后重新啟動,再試一次.沒工作.
>我注意到XdeCleanup.exe刪除了手動創建的內部私有交換機.
編輯#2
我已經厭倦了@John Kemnetz建議的方法.模擬器環境啟動了.
選擇“是”后,將顯示此例外.
編輯#3 ::解決方案?::
我是@John Kemnetz在后來的回答中提出的第二次嘗試.
這些都是以下步驟:
>打開設備管理器并從網絡適配器中刪除了一個且僅限英特爾(R)以太網連接I217-V
>然后我根本找不到網絡適配器,它消失了所以我無法重新安裝網絡驅動程序
>重新啟動機器后,不僅在網絡適配器中自動安裝了英特爾(R)以太網連接I217-V,而且還安裝了Microsoft Hyper-V網絡交換機默認微型端口.我第一次看到的東西.
>然后我嘗試了與編輯#2相同的控制臺條目.控制臺沒有像編輯#2那樣啟動.相反,我得到了這個.
好吧至少沒有錯誤!
>所以我跑到VS2015,從模板創建Cordova應用程序并嘗試運行模擬器.在我提供了所有請求的用戶權限后,它成功啟動了!
>然后我在網絡適配器下看到兩個在進程中自動創建的新條目.
總結
以上是生活随笔為你收集整理的android管理交换机,适用于Android的Visual Studio模拟器 – 运行模拟设备需要内部虚拟网络交换机...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 清华大学环境工程专业考研经验分享
- 下一篇: android手游sdk开发教程,And