简体   繁体   中英

Eclipse doesn't find my HTC Sensation

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

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

Please check if it works for you!!

I had the same problem. I installed the USB tethering driver and the problem was solved.

try to connect to the device in cmd with adb shell, if you don't have enter the adb in you $PATH go to Android sdk folder and try it from there.

You also could check if your device is int the Device-Manager in windows, there it sould be under ADB Interface

Maybe also try this go in Eclipse to Run->Run Configurations and set the Target to Manual. Then you should be able to chouse your device

I had a similar issue with my HTC Evo. This article worked for me, it involves booting your phone into recovery mode while plugged into USB and installing the driver from the device. I realize this is for a different device, but the same approach may work.

I had the same issue with the Inspire. Install HTC Sync for the USB driver that comes with it, then uninstall it because it will launch when you connect your phone and because it launches its own adb, you'll end up fighting it. On the phone, enable USB debugging and set the USB connection to Drive. Charge will work too, but Drive is better because the Eclipse Android Devices view will see all the installed software. Once that's set up, you should be able to issue 'adb devices' from a command line and see your phone as 'online' It will also compete a little with the eclipse invocations of the client, but that's fine.

I don't know did you find solution or not. I got the same problem as you mentioned exactly. I tried all the solutions from google searching, but nothing works...

Then I just put the button "Factory data reset" (Setting/Storage), and it works!

So if you still got this problem, maybe you could try this.

I have Windows 8 and an HTC sensation, after many attemps and a lot of research what worked for me was to Install HTC Sync under compatibility mode and Install the Windows 7 version, after doing this my Eclipse detected the device.

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM