Eclipse doesn't find my HTC Sensation

Punchlinern picture Punchlinern · Apr 20, 2012 · Viewed 11.7k times · Source

I don't have my Sensation any more, so obviously this no longer is a problem for me. I've decided not to delete the question since it might help others with the same problem.

Thanks for all your attempts to help!


I'm trying to program apps for my HTC Sensation (ICS, 4.0.3), but I Eclipse doesn't find it. When I press the Run "[Application Name]"-button I just get the message "No compatible targets were found. Do you wish to a add new android virtual device?", and no devices is shown in the "Android Device Chooser" that is shown.
I tried with my friends Sony Ericsson XPERIA X10 Mini Pro (2.1-update1), and that worked.
I tried with both version 2.1, 2.3.3 and 4.0.3 of the application, but none worked on my Sensation.
I have USB-debugging, Stay Awake, and Allow mock locations activated.
I've been Googleing around for days, but I haven't found a solution. I've tried the following for example (found it here):

  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 http://developer.android.com/sdk/win-usb.html)
  3. Install HTC Sync (3.0)
  4. Use USBDeview to remove device
  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 safe "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 it finds the HTC Hero and runs debug on it

I've tried to "Run Configurations -> Target -> Select 'Manual' instead of 'Automatic'"

I've installed the Google USB Drivers, and my phones drivers via HTC Sync from HTC.com

Edit:
I've got some more questions:

  • What version of Eclipse am I supposed to use? I started with Classic, but a friend of mine suggested me to use the Eclipse IDE for Java EE Developers-version instead.
  • What connection type, on my phone, am i supposed to use? Charge only? HTC Sync? I assume it's not Disk drive?
  • When I try to run a project for the first time after I start the Eclipse it tells me to ensure that adb is correctly located at 'D:\Documents\Eclipse\android-sdks\platform-tools\adb.exe' and can be executed, that is the directory of the file, and if I go there and run it manually it works, or at least I get past that error (and that's when it tells me I have no device connected).

Some quick info:

  • I'm running Windows 8 (64-bit) Consumer Preview in Boot Camp on my MacBook Pro
  • My phone is a HTC Sensation, Android 4.0.3, HTC Sense 3.6
  • Eclipse Java EE IDE for Web Developers, version: Indigo Service Release 2, Build id: 20120216-1857
  • adb version: 1.0.29

Answer

Nilesh picture Nilesh · May 23, 2012

I have written an answer here : HTC Sensation XE - debug in eclipse very poor performance

Please check if it works for you!!