Android Studio doesn't recognize my device

2019-01-07 06:48发布

Here is the problem. I want to run my Android Studio apps on my device (Samsung Galaxy Ace 2). But nothing works for me. Tell me what I've missed:

1) USB debugging is on

2) ADB driver is installed (in device manager i can see Android Composite ADB Interface)

3) ADB device list is still clear, even if i reset server(adb kill-server, adb start-server, adb devices - list of devices is clear)

4) in google usb driver directory, in android_winusb.inf file I added my device identificators

5) Android device manager still cannot connect to my device, showing this error when I reset it: "adb connection error an existing connection was forcibly closed by the remote host"

So I will be glad to hear any advices. Hope you'll help me

16条回答
放荡不羁爱自由
2楼-- · 2019-01-07 06:53

Try swapping the USB port the cable is plugged into.

Sounds crazy but after 20 minutes of debugging this worked for me.

查看更多
别忘想泡老子
3楼-- · 2019-01-07 06:53

In my case it was due to already running and hanged adb.exe on another user under my PC. I had two users on my PC, the second user had the adb.exe process hanged even when I tried to end the process. It worked with me after (End Process Tree) from the Task Manager.

Hope this will help someone with multiple users :)

Ahmad

查看更多
Ridiculous、
4楼-- · 2019-01-07 06:56

On HTC mini one 2, besides enabling the Developer Options, the following worked for me:

  1. Go to More in Wireless & Networks
  2. Mobile Network Sharing
  3. In USB network setting
  4. Select Internet pass-through
查看更多
倾城 Initia
5楼-- · 2019-01-07 06:58

For me, I tried the above. Turns out my USB cable was bad. I changed the cable and then it worked.

查看更多
【Aperson】
6楼-- · 2019-01-07 06:58

In addition to the above configurations, I had to set deployment target to "Open Select Deployment Target Dialog", run once (choosing my device from the options listed), and from then on Android Studio was able to see my device even after changing the deployment setting back to "USB Device". My SWAG is that since Android Studio uses its own internal cache to find your device, it has to be initialized first.

查看更多
兄弟一词,经得起流年.
7楼-- · 2019-01-07 07:01

LG Optimus Zone 2 pp415 d\n connect in mtp, but does work in internet connection mode. Lost lots of time messing with it. There's no doc for this, but I'd suggest trying all 4 of the connection options. Only 1 that works for me is Internet Connection->Ethernet, then win 8 auto-detects a driver and installs it. In MTP mode despite all drivers being registered with device manager, adb doesn't pick it up.

查看更多
登录 后发表回答