1

I'm struggling to connect my device(Galaxy S10) in Android Studio.

I used several methods to solve this problem, but it didn't work.

[Methods that I tried]
- Delete all android studio files and re-install it. ( gradle, sdk, etc.... )
- Add the PATH ( C\users....\Android\Sdk\platform-tools )
- Re-install the USB driver.
- Reset the adb using cmd. ( adb kill-server , adb start-server )

As you can see in the picture.

The connection assistant in Android Studio can find the Galax S10, but I cannot connect.

Please help me to solve this problem.

Screenshot

tomerpacific
  • 4,704
  • 13
  • 34
  • 52
Donghyun
  • 11
  • 1
  • 2
  • Have you enabled USB debugging in Developer options in your Galaxy S10? – Ronak Doshi Nov 22 '19 at 06:11
  • enable developer options and usb dubug mode, then allow to connect to your computer and then you should try to change connection type in notification. Try to select PTP, or file transfer mode or MIDI. Sometimes that can help, You can also try to use in Android studio where devices list, option Troubleshoot device connections – Maksim Turaev Nov 22 '19 at 07:00
  • I already enabled USB debugging in Developer options. – Donghyun Nov 22 '19 at 07:03
  • keep trying different suggestions, reboot pc, for example, reenable debug mode on phone, play with connection types google some other tips.. there is something mysterious in adb connection. from my experience – Maksim Turaev Nov 22 '19 at 07:05
  • type ```adb devices``` in your cmd prompt and see is any error going on first – Arul Nov 22 '19 at 07:09
  • I typed adb devices , but it showed nothing. – Donghyun Nov 22 '19 at 07:41
  • Are your computer block usb port? If your port is blocked by some security reason, make sure it's opened when you plug your phone in. – Dzung Vu Nov 22 '19 at 08:53

5 Answers5

1

try installing adb driver from samsung's website Link

Hamza Khan
  • 84
  • 2
0

This issue not created by android studio or gradle file. Actually this issue is caused by adb drivers.Let install adb drives manually in your device. then check connect mobile with android studio.

Ashok Reddy M
  • 330
  • 3
  • 9
0

Please check the following things to remember for connecting your phone.

  1. Always install the driver from a trusted source.
  2. Developer mode should be activated and USB debugging mode also enables.
  3. Please make sure some devices require to set USB settings to file transfer mode.
  4. In some rare cases after connecting the device we have to restart the ADB.

    Step to restart ADB in Window:

    Go to the task manager and search for ADB and end that task.

    Step to restart ADB in Ubuntu:

    Go to the System Monitor and search for ADB and kill that task.

Now go to Android Studio and try to select devices from the device list panel. And hopefully, you will be able to see your connected device.

NOTE : Connect the device to USB file transfer before kill the ADB and do not disconnect your device after killing ADB

0

There are many reasons why Android Studio doesn't see mobile phones.

One of them is a problem with the ADB Interface driver. You can check it in your Device Manager:

ADB Interface

To solve this issue, follow these steps :

  1. Connect your mobile phone with the PC using the cable and Enabled the Developer Option and USB Debugging, which you normally do

  2. Download this Android SDK

  3. Unzip the Zip file and go to the android-sdk-windows folder -> Run SDK Manager.exe with admin privileges

Android SDK Manager

  1. Search for Google USB Driver, Put a checkmark on it and click on Install packages... button

( Now the driver is downloaded but it won't install automatically. We will do it manually in the next steps. )

  1. Open the Device Manager (Right-click on the Start menu -> Device Manager)

  2. In the Device Manager locate your Android device. Then right-click on it and select "Update Driver Software".

  3. Select "Browse my computer for driver software".

  4. Select "Let me pick from a list of device drivers on my computer".

  5. Select "Show All Devices" and click on the Next button

  6. Press the "Have Disk" button.

  7. Enter the path to the Google USB driver. ( To know where your Google USB Driver downloaded, just hover your mouse on it you will find the path/location ) [See the below image]

the path

  1. Select "Android ADB Interface" from the list of device types.

  2. Confirm the installation of the driver by pressing "Yes".

  3. Confirm the installation again by pressing "Install".

  4. When the installation is done, press "Close".

Now, your Android device will be picked up by the Android Studio :)

Mir Rahed Uddin
  • 1,208
  • 2
  • 12
  • 25
0

For me it was the matter of a wrong USB cable :/

MarkWalczak
  • 1,532
  • 3
  • 16
  • 24