Eclipse will not detect HTC Hero as Virtual Device / Android AVD manager

 
Martin Belcher 17th February 2011

Problem

After not using my computer for Android development for some months I came back to it, updated Eclipse and the SDKs to the latest versions and set about doing some work. I found that I could no longer perform debugging on my device when connected via USB cable.

Current development setup is:

  • HTC Hero (Android 2.1) EMEA model
  • Eclipse Helios (3.6)
  • Windows XP SP3

Solution

I got this working by doing the following

  1. Make sure that your project is set to debuggable in the manifest android:debuggable="true"
  2. On the Hero make sure that it is set for remote debugging Menu > Settings > Applications > Development > USB Debugging (next three steps I got from developer.android.com/sdk/win-usb.html)
  3. Install HTC Sync (3.0) which you can download from this link: HTC Sync for all HTC Android Phones
  4. Use USBDeview to remove device, I downloaded this tool from the first result on Google.
  5. Plug in device
  6. Check device is added by running "C:\Program Files\android-sdk-windows\platform-tools\adb.exe devices" which said the server was out of date and automatically killed and restarted it and showed my device as connected.
  7. Also ran this to be doubly sure "C:\Program Files\HTC\HTC Sync 3.0\adb.exe devices"
  8. Then in eclipse click the drop down menu on the debug tool bar item > Debug Configurations... delete all the existing configurations and close
  9. The next time you debug in Eclipse it finds the HTC Hero and runs debug on it

Occasionally logcat will not pick up the logs from the device, if this happens just close and reopen eclipse, leave the device connected by USB, once Eclipse has restarted the logcat will be working again.

 

Add Comment

 
Name:
Email:
This email address will not be shown on the website and will not be distributed to any other parties. By submitting this email address you agree to receive an email from Eigo in the future, that email will include an option to unsubscribe from future emails.
Comment:
(HTML allowed)
Website: (Optional)
A link to show beneath your comment.
Security Check: