[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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s