Problems trying to get USB Debugging working on Windows 7 (Android)

旧巷老猫 提交于 2019-12-05 16:45:53

I went through a huge hassle with this last night (took me 4-6 hours), but finally got it working. Based off of what you have said you already accomplished, complete these steps:

  1. Reboot your computer (really, it couldn't hurt and who knows what residuals are chilling there that can screw this all up).
  2. Connect your phone
  3. In Device Manager, right-click any unknown devices related to your phone and update drivers. Manually point to the usb_drivers\ directory from your Android SDK.
  4. At this point you should only have one undetected device (ADB), Windows will not be able to find drivers for it.
  5. Download USBDeview, run as Administrator (requires right-click) and uninstall your phone and any ADB drivers it lists (your phone should still be connected).
  6. Disconnect your phone.
  7. Download HTCSync and install it.
  8. Connect your phone, Windows should now attempt to install drivers and do so no problem.
  9. Open a command window and type adb devices to confirm everything is running correctly (that is, if you placed the AndroidSDK's tools directory in your PATH variable).

Have you already checked out the article on USB drivers for Windows? I'm not quite sure if you are supposed to install the drivers via the Android Updater.

Had this problem on Windows 7 x64 and uninstalling in device manager then selecting manual install gave an error (something like: ensure driver is 64-bit compatible). Resolved as follows:

  1. Connect phone
  2. Run USBDeview as Administrator
  3. Sort by Serial Number
  4. Select all devices with Serial Number starting HT
  5. Uninstall selected devices
  6. Disconnect/reconnect phone
  7. Windows will try, and fail, to install device, ignore that and...
  8. Install driver via Device Manager:
    1. Open Device Manager (Start->My Computer, right click->Manage->Device Manager)
    2. Under Other, you should see a device with a yellow warning called ADB or Android Phone; right click -> Update driver software...
    3. Click Browse my computer for driver software
    4. Click Let me pick from a list of device drivers on my computer
    5. Select Show all devices, click Next
    6. Click Have disk...
    7. Browse to android sdk install directory and find the usb_driver directory (mine is in extras\google)
    8. Select android_winusb.inf and click OK
    9. Select Android Composite ADB Interface and click Next
    10. When the Update Driver Warning appears click Yes

(Props to craigcrawford1988 on http://android.modaco.com/topic/309154-adb-device-driver-installation-failed-on-window-7-x64/)

I got mine working in XP by editing the drivers .inf file. It seems the Desire is not listed in it.

Edit android_winusb.inf in the adt\android-sdk-windows\usb_driver folder.

I added the following lines to the relevant NTx86 or NTamd64 section.

;HTC Desire %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87&MI_01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87&REV_0100&MI_01

This worked great for me.

Here is a very helpful link I followed for setting up my HTC Droid Incredible.

USB Drivers Setup Android Windows 7

If you do not modify android_winusb.inf the USB debugging won't work.

I had a similar problem of not being able to launch the Android app from Eclipse on real phone and not in AVD. Once I installed HTC Sync, it did the magic and I was able to use real phone.

Cheers,

Madhu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!