tags:

views:

224

answers:

4

I'm new to Android development, and am attempting to run a test application on my actual device. I followed the instructions at http://developer.android.com/guide/developing/device.html (and related links), but the Android Debug Bridge (adb) doesn't recognize my connected device.

Some quick background info, I'm running WinXP, developing with Eclipse, with a Motorola Droid running Android 2.1 as my physical device.

An overview of the steps I've taken:

  1. Installed the Android SDK, downloading all necessary packages.
  2. Enabled USB Debugging on my device.
  3. Connected Device via USB, installing the driver from the SDK folder.

I'll stop here (though I continued to setup my application to be debug-able in Eclipse), because I at this point I noticed a problem.

Running "sdk\tools\adb devices" at this point (at least, by my understanding), should list my device as connected. However, running this yields only:

List of devices attached

My device recognizes that it's connected to a computer in debug mode, and my computer recognizes the device. However, I can't seem to get the sdk to recognize it. I'll leave out the steps I used to setup Eclipse for debugging on a device, as it doesn't seem relevant to the problem. I'll include them if requested.

If anyone has any ideas, I'd greatly appreciate some assistance. Thanks in advance for your time.

A: 

Kal I had the same situation some months ago, my device was recognized for my computer but adb doesn't recognize my device is connected, I had to update from the device manager.... hope it helps you!

adb driver isntalling error

Jorgesys
Yes, yes I do. I did mention I followed the steps to make my application debug-able. However, that's not relevant, as the problem is the sdk is not detecting my device. It has nothing to do with a specific application.
Kal Zekdor
A: 

Make sure you have Motorola's USB driver, as is described on this thread.

CommonsWare
The usb driver is installed, yes. However, the device is not recognized by the adb.
Kal Zekdor
@Kal Zekdor : Perhaps the driver is not being recognized by XP -- with the device plugged in, follow the instructions on http://developer.android.com/sdk/win-usb.html to "Update an existing driver", and see if there is any indication of a problem. Perhaps your micro-USB cable is faulty, as I seem to recall running into that once.
CommonsWare
No, the driver is recognized, and windows recognizes the device properly. I'll try on another computer when I get the chance, but for now, I have no idea what the problem is.
Kal Zekdor
A: 

I am using an HTC, so it may be different, but for me i have to sync the device with the pc before it will recognize the phone. When its ready, a notification pops saying that the device is attached for debugging.

Also, you need to mark your app as debuggable if you haven't already done that as explained here

mtmurdock
The application is flagged as debugable. I've done all of that.
Kal Zekdor
sorry, i reread your question and edited my answer. maybe it will help
mtmurdock
A: 

Have you tried killing the adb process and starting it back up again? That's worked for me before.

JRL