'Android Studio cannot find my device ! (Initializing ADB)
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.
Solution 1:[1]
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.
Solution 2:[2]
try installing adb driver from samsung's website Link
Solution 3:[3]
Please check the following things to remember for connecting your phone.
- Always install the driver from a trusted source.
- Developer mode should be activated and USB debugging mode also enables.
- Please make sure some devices require to set USB settings to file transfer mode.
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
Solution 4:[4]
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:
To solve this issue, follow these steps :
Connect your mobile phone with the PC using the cable and Enabled the Developer Option and USB Debugging, which you normally do
Download this Android SDK
Unzip the Zip file and go to the android-sdk-windows folder -> Run SDK Manager.exe with admin privileges
- 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. )
Open the Device Manager (Right-click on the Start menu -> Device Manager)
In the Device Manager locate your Android device. Then right-click on it and select "Update Driver Software".
Select "Browse my computer for driver software".
Select "Let me pick from a list of device drivers on my computer".
Select "Show All Devices" and click on the Next button
Press the "Have Disk" button.
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]
Select "Android ADB Interface" from the list of device types.
Confirm the installation of the driver by pressing "Yes".
Confirm the installation again by pressing "Install".
When the installation is done, press "Close".
Now, your Android device will be picked up by the Android Studio :)
Solution 5:[5]
For me it was the matter of a wrong USB cable :/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ashok Reddy M |
Solution 2 | Hamza Khan |
Solution 3 | Navneet Sharma |
Solution 4 | Mir Rahed Uddin |
Solution 5 | MarkWalczak |