Search code examples
androidxamarin.androidadb

"Waiting for device" when debugging on phone


When I debug my Android app on a device it just sits at Waiting for device endlessly. There is nothing in the log to say that something is awry. It works perfectly the first 1 or 2 times then simply cannot reconnect with the phone.

I have tried this with the following phones:

  • Samsung Galaxy S1
  • Samsung Galaxy Nexus
  • HTC Sensation.

All phones were in USB Debugging mode and have tried with Mass-Storage on and off.

Any suggestions?


Solution

  • If you run 'adb devices' from the command line, I assume you get no devices. Does disconnecting the cable and reconnecting it fix the problem?

    Have you tried 'adb kill-server' followed by 'adb devices' to restart it? That should help narrow down if it is adb vs your phones causing the problem (although I've had to kill every instance of adb sometimes, where several seem to have been spawned).