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 07:06

Change the connection method Build-In CD ROM it works for me

查看更多
虎瘦雄心在
3楼-- · 2019-01-07 07:07

Although my computer could recognise my phone, I had to install the official drivers from the Samsung developer site to get adb/Android Studio to recognise it:

Samsung Android USB Driver for Windows

查看更多
男人必须洒脱
4楼-- · 2019-01-07 07:08

Did you try to configure the "Media Mode" in "Camera (PTP)" instead of "Media device (MTP)"? This is sometimes solving the issue. Its in the USB Computer Connection options of your Android device, you should see an "authorize" dialog then.

Update 04/2017: looks like it has been fixed in Android 7.1.2

查看更多
疯言疯语
5楼-- · 2019-01-07 07:09

I am sorry that i bothered you all. The problem was my device is cloned in different places in device manager. It was gone when I tried to update driver for my phone in "Other devices" list, and before i have been updating it in wrong sections. Thank you all.

查看更多
The star\"
6楼-- · 2019-01-07 07:11

I have done numerous ways of handling that issue. Finally it has worked! I am using LG Optimus II, but I believe the following steps are generic to other Android devices as well.

Step 1:

Make sure your device is enabled for development. If yes, go to Step 2, otherwise go to Settings > About phone and tap Build number seven times which is magic number :-). Now Developer Options is available in the Settings.

Step 2:

Before you plug your device to PC, Go to Settings > Developer Options and select USB Connection method.

Step 3:

Plug the phone to the PC, you are given options for the USB Connection method, and please select Internet connection. Make sure you have connected to the Internet. By the way, I have changed MTP to PTP, it did not work for me. Therefore, I tried Internet connection mode, then it worked.

Step 4:

Run the app in the Android Studio, it will ask you to authorize the device for development, and select YES!.

Step 5:

Run the application via Android Studio and choose the device, not emulator, and BINGO! Welcome to Android development board.

查看更多
Ridiculous、
7楼-- · 2019-01-07 07:14

I also tried above solutions but got no luck. So here's what I did:

  1. Download and install PdaNet+ to fix connection issues between my computer and android device
  2. Enable USB debugging on my android device
  3. Run my app and voila! My android device is now recognized by Android Studio
查看更多
登录 后发表回答