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):
- Make sure that your project is set to debuggable in the manifest android:debuggable="true"
- 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)
- Install HTC Sync (3.0)
- Use USBDeview to remove device
- Plug in device
- 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.
- Also ran this to be safe "C:\Program Files\HTC\HTC Sync 3.0\adb.exe devices"
- Then in eclipse click the drop down menu on the debug tool bar item > Debug Configurations... delete all the existing configurations and close
- 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