70

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!

Alex P.
  • 30,437
  • 17
  • 118
  • 169
user1438823
  • 1,273
  • 3
  • 18
  • 25
  • 1
    restart android studio when device connected to pc – Dixit Patel Jul 07 '13 at 05:08
  • 2
    Thanks for the reply. It did not work. Still gives me that message ! – user1438823 Jul 07 '13 at 05:18
  • I use OnePlus One phone for debugging. When I connected Samsung Tab and debuged my app on it, suddenly I could not debug with OPO again. I dont know how this is possible but when I checked on OPO Developer options, Android debugging switch was off. – Uroš Podkrižnik Nov 18 '16 at 10:57
  • The following answer helped me solve the problem https://stackoverflow.com/questions/25225927/android-studio-doesnt-list-my-phone-under-choose-device/38801761#38801761 – Tushar Thakur Jul 25 '17 at 11:32

26 Answers26

125

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.

parsley72
  • 8,449
  • 8
  • 65
  • 98
74

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.

HalR
  • 11,411
  • 5
  • 48
  • 80
  • 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 Jul 07 '13 at 07:41
  • 2
    Great thnaks. I downloaded the device USB drivers separately from manufactures website. Now I can connect to the device. – user1438823 Jul 07 '13 at 08:04
  • Thanks alot. But I have to do more steps as @parsley72's advice:http://stackoverflow.com/a/19461399/3686940 – samthui7 Apr 19 '15 at 10:06
  • Thanks, this worked for an LG K7 that Walmart sells. I installed LG's drivers, and then it worked. – Rick Giuly Nov 13 '16 at 01:51
  • Welp, I actually enabled and disabled the listed usb adapter for android in the device manager. And holy moly it's working! :D – Sahir Dec 30 '16 at 09:30
  • download latest download latest usb driver for windows from this link: [link](https://developer.android.com/studio/run/win-usb.html) then open device manager > select your device and update drivers – Manpreet Singh Dhillon Mar 14 '17 at 16:38
16

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.

Guilherme Viebig
  • 6,901
  • 3
  • 28
  • 30
  • 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` – Andy Mac Jun 16 '15 at 15:09
  • Mine just says unknown. – johnny Oct 08 '15 at 21:49
  • Helped me with a Samsung Galaxy A5 (2016). – Semaphor Jan 25 '17 at 14:38
9

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.

Carlton
  • 5,533
  • 4
  • 54
  • 73
  • 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. – xarlymg89 Sep 11 '18 at 09:30
  • 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. – mds Dec 27 '18 at 04:06
6

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.

user3129467
  • 61
  • 1
  • 1
  • 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. – anevaude Jan 31 '17 at 17:57
5

I had the same problem with connecting my Galaxy Nexus to win7 x64. I solved it by getting drivers, they can be downloaded from here or also via Android SDK manager.

Micer
  • 8,731
  • 3
  • 79
  • 73
  • 2
    I downloaded the Google USB drivers from: http://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 – Cristian D'Aloisio Oct 21 '14 at 08:07
4

After you put your phone on developer mode, restart it. That worked for me, maybe it will work for you also. After restarting it, the phone was recognized, drivers were automatically installed. Note - I'm running on Windows 7.

almost a beginner
  • 1,622
  • 2
  • 20
  • 41
3

I've been having this issue on Mac OSX Mavericks using Android Studio, using my Samsung Galaxy Express , I did a little trick, Run -> Edit Configurations - > Run -> Show chooser dialog. When I "play" and the dialog appeared, I connected my device and it did appear. ;)

Felipe FMMobile
  • 1,641
  • 20
  • 17
  • even though i get 'usb device not found' error, Felipe's solution works for me too, sometimes: .. run .. debug 'app' (thank you Felipe) – tmr Mar 13 '15 at 01:24
  • 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. – tmr Mar 13 '15 at 01:43
2

You need to install the driver first. Follow the instructions on the Android's developers website:

http://developer.android.com/tools/extras/oem-usb.html

Rafid
  • 18,991
  • 23
  • 72
  • 108
2

I had the same problem with a Samsung galaxy note 2. It was recognized on one pc but not on another one (both running windows 7 64b). After hours of struggling, I installed Kies (from the Samsung website) on the pc where Android Studio was unable to detect the smartphone (Kies was installed on the other one).

Like magic, Android Studio detected the phone !!! I noticed that the Kies installer installed some driver for the phone.

Consequently, for those meeting the same detection problem, I would strongly advise to first install Kies.

Dominique
  • 455
  • 1
  • 8
  • 18
2

Galaxy S7, I had to go to Settings, Developer Options and allow USB Debugging. This asked to approve computer it was attached to and it showed up instantly.

Trent Ramseyer
  • 141
  • 2
  • 2
2

I had tried restart the device, and it's work, popup and ask want to trust the mac for debug mode.

Edward Chiang
  • 1,133
  • 2
  • 12
  • 24
2

I am using Samung S8, I tried to install:

  1. Intel Android Driver
  2. Samsung USB driver

But the adb bridge driver was still missing. I finally got it to work by installing the Samsung Smart Switch application which is a media manager application.

Updated at 2018-04-20: If you are struggle with the driver, just use http://adbdriver.com/downloads/

code4j
  • 4,208
  • 5
  • 34
  • 51
2

If you're using a USB Type-C cable, check if it has the charging and data transfer capability. Many USB Type-C cables are for charging only, and are not recognized by Android Studio.

Lucas Bustamante
  • 15,821
  • 7
  • 92
  • 86
  • 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).. – Vivek Thummar Oct 27 '21 at 05:23
1

Check installed drivers. If drivers ok, check device usb-port it could be damaged.

Aleksandr
  • 787
  • 6
  • 22
1

I have a Samsung Galaxy S4. Although visible from Devices, my phone was not listed as connected from Android Studio. I tried a few things independently, and then together, and found that only a combination of steps fixed the issue, so this is for you if measures listed above or on another site did not work on their own.

  1. Enable USB debugging from "Developer Options"
  2. Download Kies from Samsung. I believe Samsung US has replaced Kies with a new software called Smart Switch, but this did not resolve anything for me. I found a Samsung UK download of Kies that worked fine.
  3. After connecting your phone to your PC via USB, go to your phone notifications and click on USB settings at the top. Switch it to Camera mode.

I repeat, only all 3 of these together fixed the issue, so if some fixes you have tried haven't worked, use these 3 and it could fix the problem for you. Best of luck.

Kartik Chugh
  • 1,104
  • 14
  • 28
1

Restart Android Studio Worked in my case

Hitesh Sahu
  • 41,955
  • 17
  • 205
  • 154
1

For me, this simple trick worked:

I actually enabled and disabled the listed USB Adapter for android in the device manager (Control Panel -> Hardware & Sound -> Device Manager). And holy moly it's working! :D

Sahir
  • 329
  • 1
  • 2
  • 9
1

The solution for me was following the instructions at https://developer.android.com/studio/run/oem-usb.html#InstallingDriver. Specifically, the key part from that link that helped me to find the solution was this: "Install a USB Driver. First, find the appropriate driver for your device from the OEM drivers table below." This means that you cannot find a single link that applies to everyone as the solution. It will depend on your device! "So I visited the page to get OEM Drivers at https://developer.android.com/studio/run/oem-usb.html#Drivers. In my case, the device I was using was an LG K8 LTE. I had to go to http://www.lg.com/us/support/software-firmware-drivers#, Browse by product and I found the driver I needed under the Model Number "LGAS375 KG K8 ACG - AS375", Cell Phone Product. From http://www.lg.com/us/support-mobile/lg-LGAS375 I used the "Install the USB DRIVER" for Windows (http://tool.lime.gdms.lge.com/dn/downloader.dev?fileKey=UW00120120425).

Depending on the device model you are using, you will need to find the specific drivers that work for your phone, and that should work.

Jaime Montoya
  • 6,915
  • 14
  • 67
  • 103
1

How to get connection to device working using adb command line:

USB debugging enabled on phone and phone connected.

I am exercising these commands on linux(redhat and ubuntu) but same commands work under the hood on windows. The device manager runs adb commands. You can find a console in your device manager or regular command-line works if you set up your paths to SDK.

If you can run adb and see something like ???????? in devices list ..

$ android-studio/sdk/platform-tools/adb devices
List of devices attached 
????????????    no permissions

You might be running the adb server as a regular user. You might have to run the adb server as root. So kill the server as regular user and start it as root.

$ adb kill-server
$ which adb
$ sudo <fullpath>/android-studio/sdk/platform-tools/adb start-server

Now look at adb devices list, if it is first time this machine connects to this phone you will see "unauthorized".

$ adb devices
List of devices attached 
MWS0216A31xxxxxx    unauthorized

At this point on phone you should have dialog popped up and you can tap ok to authorize. Then you should see "device" in the devices list and commands like shell/push/pull/sync/backup... should work.

$ adb devices
List of devices attached 
MWS0216A31xxxxxx    device

$ adb shell "uname -a; df; ls /storage/sdcard0/Download"
Linux localhost 3.10.90-g2ff1b22 #1 SMP PREEMPT Tue Dec 27 17:12:50 CST 2016 aarch64
Filesystem               Size     Used     Free   Blksize
/dev                     1.3G   108.0K     1.3G   4096
/sys/fs/cgroup           1.3G    12.0K     1.3G   4096
/mnt                     1.3G     0.0K     1.3G   4096
/sys/fs/cgroup/pids: Permission denied
/system                  2.4G     2.3G   106.8M   4096
/cust                  492.0M   327.7M   164.3M   4096
/cache                 248.0M   160.0K   247.8M   4096
/splash2: Permission denied
/3rdmodem               59.0M     4.9M    54.1M   1024
/3rdmodemnvm: Permission denied
. .
/storage                 1.3G     0.0K     1.3G   4096
/data                   25.1G    10.9G    14.2G   4096
/mnt/runtime/default/emulated: Permission denied
/storage/emulated       25.1G    11.2G    13.8G   4096
/mnt/runtime/read/emulated: Permission denied
/mnt/runtime/write/emulated: Permission denied
.
.

Lovely jubly. Hopefully.

gaoithe
  • 4,218
  • 3
  • 30
  • 38
0

For example:

My file path:

C:\...\sdk\extras\google\usb_driver\android_winusb.inf

My data to paste:

;Tablet PC

%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_0003&MI_01

%CompositeADBInterface%     = USB_Install, USB\VID_18D1&PID_0003&REV_0230&MI_01
Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
0

Well, in my case updating drivers, restarting Android Studio, restarting my phone, changing the USB mode or unplugging USB did not help.

Then I went to the dev settings in my phone, toggled the Dev. Mode off and back on, and it worked. AS was open and phone was plugged at the moment.

Alex P.
  • 30,437
  • 17
  • 118
  • 169
P_95
  • 145
  • 8
0

I had this problem occurring suddenly in Dell Ubuntu linux machine with Android Developer Studio. I did the following steps

    1. I opened "System Settings"
    2. Select the listed item "Software and Updates"
    3. Click on the tab "Additional Drivers"
    4. There was a mention about "Dell Inc: Unknown" and the option "Do not use use the device" selected. I selected the alternate driver mentioned and did an "Apply the Changes".

It started working.

0

I just ran adb command prompt and hit 'adb devices' and it showed daemon was not running. It installed itself and now i can able to see android devices there.

C:\...\...\source\repos\ABC\ABC\Ex.Android>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
ZF22Q3T      unauthorized

and Reload the project

summerGhost
  • 477
  • 4
  • 15
0

Windows, many times it will not recognize the device fully and because of driver issues, the device won't show up.

  • 1).go to settings

    2).control panel

    3).hardware and sound

    4).device manager

enter image description here

Keshav Gera
  • 10,807
  • 1
  • 75
  • 53
0

Restarted my PC and worked in my case.

Najam Ul Saqib
  • 304
  • 3
  • 12