Android device is not connected to USB for debugging (Android studio)

271,753

Solution 1

If you are on windows, many times it will not recognize the device fully and because of driver issues, the device won't show up.

  • go to settings
  • control panel
  • hardware and sound
  • device manager

And look for any devices showing an error. Many androids will show as an unknown USB device. Select that device and try to update the drivers for it.

Solution 2

I had this problem with a Nexus 7 - it appeared in Device Manager fine but wasn't recognised by Android Studio. The device had USB debugging turned on. Eventually I noticed an icon in the top left hand corner that said "Connected as a media device. Touch for other USB options." When I selected this I was able to change from Media Device (MTP) to Camera (PTP) and then it started working.

Solution 3

This solution works for every unrecognized android device... mostly general brands don´t come with usb debugging drivers...

  • go to settings
  • control panel
  • hardware and sound
  • device manager
  • And look for any devices showing an error. Many androids will show as an unknown USB device or just Android

First thing you need will be your device IDs. You can get them opening up the device manager and finding the "Unknown Device" with a yellow exclamation point. Right click on it and select 'Properties', and then go to the 'Details' tab. Under the 'Property' drop down menu, select hardware IDs. There should be two strings:

USB\VID_2207&PID_0011&REV_0222&MI_01
USB\VID_2207&PID_0011&MI_01

Copy those strings somewhere and then navigate to where you downloaded the Google USB driver. Then you need to open up the file 'android_winusb.inf' in a text editor. I would recommend using Notepad++.

android_winusb.inf

First, create a sub-section for your device. I called mine ';RCA 6378W2' but it doesn't really matter what you call it. Then, under the sub-section you created paste the Device ID strings you copied from the Device Manager, preceded by '%SingleAdbInterface%'. If you need help, look at this screenshot.

NOTE:

If you are using Windows 8 or 8.1, you will need to disable device driver signature checks before you'll be able to install the modified driver. Here's a quick video on how to disable device driver checks http://www.youtube.com/watch?v=NM1MN8QZhnk. Ignore the part at the beginning about 64 bit, your computer architecture doesn't matter.

Please look at this article, for more information and MacOS instructions.

Solution 4

Try a different cable, ideally an official Samsung one.

I had tried a crappy USB cable I had lying around and then tried another which was Samsung and works perfectly now.

Not sure why they would be different though but worked for me.

Solution 5

Found out for Samsung, Installing Kies also update the usb driver which solve my problem with connecting my Samsung Galaxy S Advance with Android 4.1.2 to Android Studio on Windows 7 64bit. In this case the devise manager shows device driver is updated and working, but when I connect my phone Android Studio does not recognize my device.

Share:
271,753
user1438823
Author by

user1438823

Updated on July 05, 2022

Comments

  • user1438823
    user1438823 almost 2 years

    I am trying to debug my application using a real device instead on the emulator. When I try to connect, it gives me the message:

    USB device not found

    I tried to unplug and plug it again, but it did not work. And I have also enabled USB debugging and unknown sources options in my device.

    Any help is appreciated!

    Thanks!

  • user1438823
    user1438823 almost 11 years
    Thanks for the replies. When I go to devices. Under Other devices it showed the Android Adapter with an exclamation mark. But when I try to update that. Update fails.
  • user1438823
    user1438823 almost 11 years
    Great thnaks. I downloaded the device USB drivers separately from manufactures website. Now I can connect to the device.
  • Luis Pena
    Luis Pena over 10 years
    Omg!! You saved my day!
  • anon
    anon about 10 years
    This worked for me, but I also had to restart Android Studio.
  • Sterling Diaz
    Sterling Diaz almost 10 years
    Worked for me too. Changing to PTP and restaring android studio
  • Cristian D'Aloisio
    Cristian D'Aloisio over 9 years
    I downloaded the Google USB drivers from: developer.android.com/sdk/win-usb.html#top - connected the phone - restarted the ADB deamon with "adb.exe usb" - accepted the dialog window on my smartphone that asking me to accept the communication
  • tmr
    tmr about 9 years
    even though i get 'usb device not found' error, Felipe's solution works for me too, sometimes: .. run .. debug 'app' (thank you Felipe)
  • tmr
    tmr about 9 years
    i tried to edit, add to previous comment, but stackoverflow would not allow editing after 5 mintue window = new comment... if run/debug'app' does not work, opening activity monitor and quiting 'adb' also works some of the time.
  • samthui7
    samthui7 about 9 years
    Thanks alot. But I have to do more steps as @parsley72's advice:stackoverflow.com/a/19461399/3686940
  • FunkSoulBrother
    FunkSoulBrother about 9 years
    Worked for me. Changing the from MTP and PTP, disconnecting and reconnecting the cable to the device did it.
  • Matthew Read
    Matthew Read almost 9 years
    This looks like it should be a comment on Guilherme's answer.
  • Andy Mac
    Andy Mac almost 9 years
    Thanks! Helps for Samsung Galaxy Star GT-S7262. I added this section to android_winusb.inf file - ;Samsung Galaxy Star %SingleAdbInterface% = USB_Install, USB\VID_04E8&PID_6866&REV_0400&MI_01 %SingleAdbInterface% = USB_Install, USB\VID_04E8&PID_6866&MI_01
  • johnny
    johnny over 8 years
    Mine just says unknown.
  • Md. Sajedul Karim
    Md. Sajedul Karim over 8 years
    @parsley72 You save my life sir. I select Camera (PTP) device then it found my device. My device is Walton primo RX4
  • Sagar Gangawane
    Sagar Gangawane over 7 years
    Actually I was having issue for the tablets other smartphones were working properly. MTP to PTP solved my issue.
  • Rick Giuly
    Rick Giuly over 7 years
    Thanks, this worked for an LG K7 that Walmart sells. I installed LG's drivers, and then it worked.
  • Sahir
    Sahir over 7 years
    Welp, I actually enabled and disabled the listed usb adapter for android in the device manager. And holy moly it's working! :D
  • Semaphor
    Semaphor over 7 years
    Helped me with a Samsung Galaxy A5 (2016).
  • anevaude
    anevaude over 7 years
    I'm on Mac OSX Yosemite and could not connect to a Galaxy S7. After trying Samsung Kies, I did get a new prompt asking for USB Permissions. After I approved that, my USB device started to show up in Chrome.
  • Manpreet Singh Dhillon
    Manpreet Singh Dhillon about 7 years
    download latest download latest usb driver for windows from this link: link then open device manager > select your device and update drivers
  • tsionyx
    tsionyx about 7 years
    Selecting 'Photos' mode on my Huawei phone worked for me.
  • xarlymg89
    xarlymg89 over 5 years
    This happened to be my issue. It's kind of awkward that I can charge my phone with this USB cable, but I cannot use it to transfer data. I guess, it's an USB 1.0/1.1 cable.
  • mds
    mds over 5 years
    This response should be substantially upvoted. It has happened to me many times, and even the good cables you buy wear out over repeated use. Unless it's some weird windows USB thing (I'm on Linux with udev) -- and NOTHING ELSE WORKS -- it's the f***king gd$mn usb cable connector. Guaranteed, every time.
  • Vivek Thummar
    Vivek Thummar over 2 years
    i bought a cable few days ago, it have both of the capabilities but it will disconnect after some time, so i have to change options everytime when it disconnects(from Charging to File-Transfer)..and again for some time it will work and then disconnect after few minutes(now change in reverse, from File-Transfer to Charging)..