There are 2 very common errors I get from ADB (probably close to every day or every other day).

The first is failure to find device – no idea why this happens and I don’t have any logcat output handy, but you’ll see it try to reconnect 10 or 11 times in red output in the console.

The simple fix is to just unplug the USB and reconnect.

The second common error I see is failure to sync – the console will say something like this:

[text]
[2011-08-18 21:03:05 – blah] Failed to install blah.apk on device ‘blah’: Unable to open sync connection!
[2011-08-18 21:03:05 – blah] java.io.IOException: Unable to open sync connection!
[2011-08-18 21:03:05 – blah] Launch canceled!
[/text]

The fix for this is:

1. Unplug USB.
2. Settings > Applications > Development > USB Debugging (turn it off)
3. Settings > Applications > Development > USB Debugging (turn it back on)
4. Reconnect USB.

Finally, if the entire phone freezes (no force close – just freeze). If you can power down, just do that and restart the device. If not, I’ve actually had to remove and replace the battery.

I really enjoy Android development, and think it’s got a bright future, but it seems to me that this is one of the most hostile development environments I’ve ever encountered. Hopefully as use grows, so will attention to the woes of the red-headed stepdevs.