[Solution] “Selected device is not running.” When deploying Xamarin project to Android device using Wi-Fi in Visual Studio

This one’s a real bugger and there’s no info at all on the web:

  1. Close Visual Studio
  2. Open cmd and type -> adb kill-server
  3. Connect device through USB
  4. Go back to cmd window -> adb tcpip 5555
  5. Open new cmd window -> adb connect <YOUR-DEVICE-IP-ADDRESS>
  6. Unplug device
  7. Open Visual Studio
  8. Try deploying again. It should work but it takes longer than expected.

This assumes that the Android Debugger (adb.exe) is added to your PATH variable. For detailed steps on how to do this, check this answer by Chris Sim on StackOverflow.