简体   繁体   中英

Eclipse won't recognise android phone

I have a Samsung Galaxy S4 that I would like to deploy my app to using eclipse. However the device simply does not appear on the list of devices to deploy to.

  • I am using Windows 7 64-bit.

  • The phone appears as a drive when plugged in, allowing me to transfer files to and from the device.

  • The phone has developer mode and USB debugging switched on.

  • In the Android SDK Manager, the Google USB Driver appears as installed .

  • I have manually installed the usb driver located at \\extras\\google\\usb_driver\\ .

  • This same device has been recognised and deployed to on other computers.

  • I have tried restarting the adb server in command prompt using adb kill-server and then typing adb start-server .

  • I have tried restarting both the phone and the computer.

My deployment screen simply thinks there is no android device:

在此处输入图片说明

Any ideas? Is there perhaps something I am missing here that is required for my android device to be properly recognised by eclipse?

You may need an OEM driver, not the google USB driver. Some people say installing Samsung Kies (I think you'll need Samsung Kies 3 actually) gets you that driver for free. Or you might try the Samsung site, as listed here: http://developer.android.com/tools/extras/oem-usb.html

Personally, I tried both of those and a lot of other things before I finally got it working. Of course it was all my fault. I had forgotten to turn on USB debugging. Reading your question made me realize that. Thanks!

From Android 4.2.2 ADB need RSA authentication.
Make sure your device is not appeared as offline in the output of adb devices .
If so, you need to update the latest driver and SDK, then re-plugin the cable.
If there is a Allow USB debugging window pops up in your phone, everything will go right.

Sometimes it helps to simply open the DDMS view. I don't know why it helps, but sometimes it just does. If you open DDMS and your device appears in the list in DDMS, it should then also appear in the list of devices for running the app, even if it wasn't there before opening the DDMS view.

First Check

Always prompt to pick device.

Then right click on your project and run as android application. it will show your phone. Try it.

I know this may not be possible for everyone, but I changed my USB cord and it worked. Don't really know why because the other one would charge my phone and say I was connected.

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