Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3
After hours and hours of research, and applying following steps I finally get it working:
1) Repair Android SDK - go to Programs and Features > Microsoft Visual Studio Emulator for Android > Change and hit "Repair"
2) Remove All Hyper-V virtual switches - go to Hyper-V > Virtual switch manager > Remove all virtual switches
3) Run XdeCleanup.exe - In my case: "C:\Program Files (x86)\Microsoft XDE\10.0.10240.0"
4) In my case I had configured Internet connection sharing on Ethernet adapter before so I had to disable it
Usually, the System.ServiceModel.ServiceHost error means there is some residue from a botched installation.
First, go to Task Manager and kill any running XDE processes.If that doesn't fix it, go to Programs and Features > Microsoft Visual Studio Emulator for Android > Change and hit "Repair"
I have found the following to work for me:
- Disable your WiFi connection.
- Launch your app.
- Observe Emulator gets loaded
- Re-enable WiFi.
- Note how restarting your app should not be an issue anymore as long as the emulator is initially loaded.