A phone is plugged in over USB but Android Studio and adb do not list it
Android Studio's device drop-down shows No Devices, or the phone is missing from Device ManagerShort answer
adb lists a phone only when four things hold: USB debugging is on, you accepted the computer's RSA key on the phone, the computer has a driver or udev rule for the device, and the cable carries data to a running adb server. Run adb devices -l, then work down the causes below; Tools > Troubleshoot Device Connections walks the same path.
Fix it fast
1Find out which cause you have
Ask adb directly, with its own server freshly started, and watch whether the phone appears or what state it reports. Studio uses the same server, so what adb shows is what Studio can use.
adb kill-server adb start-server adb devices -l2Match what you see, then jump to its fix
- 1
adb devices shows nothing at all, and Settings > Developer options on the phone shows USB debugging switched offUSB debugging is off, or Developer options is not unlockedFix - 2
The phone shows an Allow USB debugging dialog with an RSA key fingerprint, or you dismissed that dialog earlier and it has not returnedThe computer's RSA key was never accepted on the phoneFix - 3
On Windows the phone appears in Device Manager under Other devices or Portable Devices with a warning icon, and adb devices stays emptyWindows has no USB driver for the phoneFix - 4
On Ubuntu or similar the phone shows in lsusb but not in adb devices, or adb prints a plugdev group messageLinux: the user is not in plugdev or the udev rules are missingFix - 5
The phone charges but nothing happens on the phone or in Device Manager, and another cable or port makes it appearThe cable or port does not carry dataFix - 6
Everything on the phone is right, yet adb devices stays empty until adb is restarted, or Studio cannot even connect to an emulatorThe adb server is stale or Platform-Tools is out of dateFix
- 1
What does the error look like?
Android Studio's device drop-down shows No Devices, or the phone is missing from Device Manageradb devices prints List of devices attached with nothing below itadb devices lists the phone with the state offlineflutter devices does not show the phone
Cause 1 of 6
USB debugging is off, or Developer options is not unlocked
1Check
adb can talk to a phone only when USB debugging is enabled on it. On the phone open Settings, then Developer options, and check the USB debugging switch. If Developer options is missing from Settings, it is hidden until you unlock it, and Android's own page explains how.
adb devices -l # then check the USB debugging switch on the phone itself2Fix
Turn on USB debugging in Developer options, then unplug and reconnect the cable.
adb devices -l3Verify
The phone shows up in adb devices -l and in Android Studio's device list.
adb devices -lConfirmed by developer.android.com
Cause 2 of 6
The computer's RSA key was never accepted on the phone
1Check
From Android 4.2.2 the phone asks whether to accept the RSA key of the computer before debugging over USB is allowed. Until you unlock the phone and accept, adb commands cannot run. The dialog is easy to miss on a locked screen.
adb devices -l # the phone must be listed with the state device2Fix
Unlock the phone, unplug and reconnect the cable, and tick Always allow from this computer in the dialog before tapping Allow. If no dialog ever appears, use Revoke adb debugging authorizations in the phone's settings, then reconnect.
adb kill-server
adb start-server
adb devices -l3Verify
The state column reads device.
adb devicesConfirmed by developer.android.com
Cause 3 of 6
Windows has no USB driver for the phone
1Check
On Windows a USB driver is needed for the device to talk to adb; macOS and Linux need none. Open Device Manager with the phone connected and see whether it has a working driver.
adb devices -l # then look for the phone in Device Manager2Fix
Download the driver for your phone's maker from the list in Android's OEM driver page, or use the Google USB driver in your SDK folder (android_sdk\extras\google\usb_driver) for Google devices, and install it by choosing Update Driver for the device in Device Manager.
# Device Manager > right-click the phone > Update driver
# > Browse my computer for drivers > choose the driver folder
adb kill-server
adb devices -l3Verify
The device name appears in adb devices -l.
adb devices -lConfirmed by developer.android.com
Cause 4 of 6
Linux: the user is not in plugdev or the udev rules are missing
1Check
On Ubuntu, each user of adb has to be in the plugdev group, and udev rules that cover the device must be installed. Android's docs name the android-sdk-platform-tools-common package as the source of a community-maintained rule set.
id | tr ',' '\n' | grep plugdev
lsusb2Fix
Add yourself to plugdev, install the rules package, log out and back in (group changes apply at login), then reconnect the phone.
sudo usermod -aG plugdev $LOGNAME
sudo apt-get install android-sdk-platform-tools-common3Verify
id lists plugdev and adb devices shows the phone.
id | tr ',' '\n' | grep plugdev
adb devices -lConfirmed by developer.android.com
Cause 5 of 6
The cable or port does not carry data
1Check
Android's troubleshooting steps for USB connections include swapping the cable. If you have only one cable, try a second phone: if the second phone is detected, the cable is fine and the first phone's settings are the problem.
adb devices -l # run it once per cable and per port2Fix
Use a cable that you know carries data, try another port on the computer, and retry.
adb kill-server
adb devices -l3Verify
The phone is listed on the new cable.
adb devices -lConfirmed by developer.android.com
Cause 6 of 6
The adb server is stale or Platform-Tools is out of date
1Check
Studio and the command line talk through one adb server process. Android's troubleshooting page lists restarting that server, and, if Studio cannot connect to an emulator either, downloading the latest SDK Platform Tools. Compare your adb version with the current release.
adb --version
which -a adb2Fix
Use the Restart ADB server button in Tools > Troubleshoot Device Connections, or restart from the terminal, and update SDK Platform-Tools in the SDK Manager. Make sure only one adb is on your PATH.
adb kill-server
adb start-server
adb devices -l3Verify
adb devices -l lists the phone, and Studio shows it after you reopen the device menu.
adb devices -lConfirmed by developer.android.com
How do I stop it coming back?
- Keep SDK Platform-Tools updated from the SDK Manager and keep a single adb on your PATH.
- Keep a USB cable you know carries data, and label it.
- Accept Always allow from this computer once, so the RSA prompt does not return after every reconnect.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine built on the same technologies:
- TaxiDexMy own multi-tenant taxi dispatch SaaS: API, dispatcher portal, driver and passenger apps, and the servers underneath.
- QistLockA NestJS and React SaaS driving an Android Device Owner agent that locks financed phones when payments lapse.
- Dispatch ProA real-time logistics platform: Flutter apps, Spring Boot services and a Kafka event pipeline on AWS.
Related fixes
Mobile apps
Flutter Android build stops with Execution failed for task ':app:…'
Execution failed for task ':app:compileFlutterBuildRelease'.
The line only tells you which Gradle step broke; the task name in the quotes tells you why.
5 causes, each with a fixMobile apps
flutter doctor says the Android cmdline-tools component is missing
Android license status unknown.
Flutter checks for a cmdline-tools folder inside the Android SDK it found, and stops the Android checks when that folder is absent.
6 causes, each with a fixMobile apps
Flutter's Android build stops: JAVA_HOME is not set
ERROR: JAVA_HOME is set to an invalid directory
The Gradle wrapper script needs a Java runtime and looks in two places: the JAVA_HOME variable, then a java command on PATH.
3 causes, each with a fixMobile apps
flutter run hangs for minutes on Running Gradle task 'assembleDebug'
Downloading https://services.gradle.org/distributions/gradle-8.14-all.zip
That line only says Gradle started; the wait is inside Gradle.
3 causes, each with a fixMobile apps
flutter doctor cannot find the Java that comes with Android Studio
Unable to find bundled Java version.
Flutter looks for the Java inside Android Studio first, then JAVA_HOME, then any java on PATH.
3 causes, each with a fixMobile apps
flutter doctor cannot find the Android SDK
Unable to locate an Android SDK.
Flutter looks for the SDK in a fixed order: its own android-sdk setting, then ANDROID_HOME, then ANDROID_SDK_ROOT, then the default folder for your system.
4 causes, each with a fix