Windows Phone emulator not starting (couldn`t setup the UDP port)

前端 未结 15 1654
春和景丽
春和景丽 2020-12-02 13:46

After updating Windows 10 to build 10061 windows phone emulators (all 8.1 and 10) stopped starting. I get the following error: \"Windows Phone Emulator is unable to connect

相关标签:
15条回答
  • 2020-12-02 14:09

    For me, the following steps worked:

    1. Open Hyper-V manager and delete all emulators

    2. From Virtual Switch Manager (right side of hyper-v manager), delete all internal switches

    3. From Control Panel->Network and Sharing Center, disable the virtual ethernet port for windows phone emulator

    4. Start Visual Studio and start emulator from there (Just deploy a project)

      Update: Your old connection will stay disabled and a new connection will be created. If you want to delete the old connection, go to device manager, find the connection and choose "uninstall"

    0 讨论(0)
  • 2020-12-02 14:11

    I know it's an old thread but just thought I would chime in.

    What fixed it for me was going into "Turn windows features on or off"... unselecting all the hyper v boxes... restarting my computer... then selecting all the hyper v boxes again in "turn windows features on or off" and restarting again....

    This fixed it for me. I tried the solutions mentioned above but they did not work.

    0 讨论(0)
  • 2020-12-02 14:13

    I have struggled for some days with this issue. After I have read all forums and references, I have found the solution and fixed it. The solution was as following. https://msdn.microsoft.com/en-us/library/windows/apps/jj681694(v=vs.105).aspx

    Interference from other virtualization or networking software and drivers

    Other virtualization and networking software and drivers can interfere with the virtual network used by the emulator to communicate with Visual Studio. The types of software that may cause a problem include:

    -Virtualization software other than Hyper-V.
    
    -VPN clients.
    
    -Software firewalls.
    
    -Antivirus applications that hook into the network stack.
    
    -Network monitoring or logging tools.
    
    -Other system monitoring software.
    

    After I uninstalled some software to interfere, I can run the emulator successfully. Hope this help. Thanks

    0 讨论(0)
  • 2020-12-02 14:18

    Windows 10 pro.

    After attempting all the above, and similar suggestions from other threads, what ultimately worked for me was to:

    • Uninstall Hyper-V: Add/Remove -> Turn Windows Features On / Off
    • Uninstall Visual Studio Emulator for Android
    • Reboot
    • In Device Manager, "Uninstall" all remaining "Hyper-V Virtual Ethernet Adapter" instances found under "Network Adapters" node
    • Reboot
    • Reinstall Hyper-V
    • Reboot
    • Reinstall Visual Studio Emulator for Android
    • Download a device profile and launch
    • profit

    Not all the reboots may have been necessary, but I had been banging my head against this for too long.

    I believe this was caused due to me adding and removing Hyper-V a few times in the past, and some VirtualBox conflicts (which I currently do not have installed, it hasn't played nice with Hyper-V for me in the past).

    Thanks for all tips above, hope this helps someone.

    0 讨论(0)
  • 2020-12-02 14:18
    1. Open Hyper-V Manager.
    2. Open Virtual Switch Manager on the right side like pictured below:

      Open Virtual Switch Manager

    3. Remove all Virtual Switches that contain "Windows Phone Emulator Internal Switch" and "Microsoft Emulator NAT Switch" like pictured below:

      Remove Virtual Switch

      1. On Visual Studio, Click on your emulator that you want to deploy your app on.
    0 讨论(0)
  • 2020-12-02 14:19

    For me all above solutions didn't work. Maybe because my Ethernet is disabled.

    My solution is similar to other:

    1) delete vm's from hyper-v

    2) delete all internal switches

    3) create manually new switch and select wifi

    screenshot

    4) install vm profile

    5) start it :)...

    after 6h endly

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