Android device is not connected to USB for debugging (Android studio)
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++.
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.
user1438823
Updated on July 05, 2022Comments
-
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 almost 11 yearsThanks 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 almost 11 yearsGreat thnaks. I downloaded the device USB drivers separately from manufactures website. Now I can connect to the device.
-
Luis Pena over 10 yearsOmg!! You saved my day!
-
anon about 10 yearsThis worked for me, but I also had to restart Android Studio.
-
Sterling Diaz almost 10 yearsWorked for me too. Changing to PTP and restaring android studio
-
Cristian D'Aloisio over 9 yearsI 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 about 9 yearseven though i get 'usb device not found' error, Felipe's solution works for me too, sometimes: .. run .. debug 'app' (thank you Felipe)
-
tmr about 9 yearsi 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 about 9 yearsThanks alot. But I have to do more steps as @parsley72's advice:stackoverflow.com/a/19461399/3686940
-
FunkSoulBrother about 9 yearsWorked for me. Changing the from MTP and PTP, disconnecting and reconnecting the cable to the device did it.
-
Matthew Read almost 9 yearsThis looks like it should be a comment on Guilherme's answer.
-
Andy Mac almost 9 yearsThanks! 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 over 8 yearsMine just says unknown.
-
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 over 7 yearsActually I was having issue for the tablets other smartphones were working properly. MTP to PTP solved my issue.
-
Rick Giuly over 7 yearsThanks, this worked for an LG K7 that Walmart sells. I installed LG's drivers, and then it worked.
-
Sahir over 7 yearsWelp, I actually enabled and disabled the listed usb adapter for android in the device manager. And holy moly it's working! :D
-
Semaphor over 7 yearsHelped me with a Samsung Galaxy A5 (2016).
-
anevaude over 7 yearsI'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 about 7 yearsdownload latest download latest usb driver for windows from this link: link then open device manager > select your device and update drivers
-
tsionyx about 7 yearsSelecting 'Photos' mode on my Huawei phone worked for me.
-
xarlymg89 over 5 yearsThis 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 over 5 yearsThis 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 over 2 yearsi 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)..