Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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?

like image 902
CodeMonkey Avatar asked Mar 15 '12 00:03

CodeMonkey


2 Answers

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

like image 97
ProjectJourneyman Avatar answered Nov 15 '22 14:11

ProjectJourneyman


Try

  1. disconnect phone
  2. "adb kill-server"
  3. "adb start-server"
  4. reconnect phone
like image 35
Kai Avatar answered Nov 15 '22 16:11

Kai