Visual Studio Emulator for Android - An internal virtual network switch is required for emulated devices to run

后端 未结 5 1043
无人及你
无人及你 2020-12-29 15:51

Problem

I want to use Visual Studio Emulator for Android but whenever I try to start it it fails.

The final part of the Log is:



        
相关标签:
5条回答
  • 2020-12-29 16:08

    Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3

    Follow the steps in above URL, it's also doesn't work.

    Then I do the steps below, it's work!

    1. Uninstall all net work adapter in device manager, reboot computer.

    2. Open Visual Studio Emulator for Android, click "Uninstall profile" of the device you want to lunch, then click "Install profile" to reinstall it. Now, lunch the device, it should work.

    0 讨论(0)
  • 2020-12-29 16:10

    Looks like a problem with Hyper-V. You may want to try the following (in order):*

    1. Open Hyper-V Manager, delete all virtual switches via the Virtual Switch Manager, delete all VMs, and reboot. Now, try to restart the emulator.
    2. If that also fails, attempt to upgrade your drivers for the adapter connecting you to the internet (I'm guessing it's a WiFi adapter?). Go to Control Panel > Device Manager and under "Network Adapters" find your WiFi/internet adapter, right click, and uninstall. When done, right click on Network adapters and scan for hardware changes. This will reinstall your adapter. Reboot, then try to start the emulator again.
    3. If that still fails, the last course of action is to run a "repair" on Windows. If there truly is a problem between Hyper-V and your network adapters, this may resolve the issue

    *note that #2 was the solution that worked for kr85

    0 讨论(0)
  • 2020-12-29 16:12

    This error took me weeks to finally resolve. The above solutions did not work for me when doing only what was mentioned. Finally I did all of the following which resolved my issue.

    1. Closed all EXD.exe in task manager.
    2. Exported and then deleted all VMs in Hyper-V.
    3. Deleted all Network Switches in Hyper-V (except the default which would not delete).
    4. Deleted my Network Adapters, restarted (it recreated all of them automatically).
    5. Went to Add Remove Program > Selected Microsoft Visual Studio Emulator for Android > Clicked Modify > Clicked Repair.
    6. Ran XdeCleanup.exe in C:\Program Files (x86)\Microsoft XDE\10.0.15063.0.
    7. Went to Network Connections and disabled all unnecessary connections.

    Installed the Emulator again and it worked!!!

    0 讨论(0)
  • 2020-12-29 16:15

    In the log file you've got:

    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
    

    If you run that command manually in Command Prompt, but without the /noStart and /silent flags, it will tell you why it can't create the virtual switch.

    0 讨论(0)
  • 2020-12-29 16:24

    Upgrade the network adapter drivers (I didn't even need to uninstall it) and restart the computer

    0 讨论(0)
提交回复
热议问题