Android device is not connected to USB for debuggi

2019-01-10 12:32发布

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!

24条回答
闹够了就滚
2楼-- · 2019-01-10 12:37

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

查看更多
放荡不羁爱自由
3楼-- · 2019-01-10 12:38

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.

查看更多
迷人小祖宗
4楼-- · 2019-01-10 12:38

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. ;)

查看更多
一纸荒年 Trace。
5楼-- · 2019-01-10 12:41

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.

查看更多
等我变得足够好
6楼-- · 2019-01-10 12:42

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.

查看更多
beautiful°
7楼-- · 2019-01-10 12:42

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.

查看更多
登录 后发表回答