What the "ADB not responding" Error Means
The "ADB not responding" error occurs when Android Debug Bridge (ADB) stops reacting to commands. This typically manifests when running commands in the terminal, such as adb devices, adb shell, or others: the command hangs, returns no result, or outputs an error message. ADB is a tool for debugging and managing Android devices from a computer, and if it's not working, you won't be able to install apps, retrieve logs, or interact with the device via the command line.
Common Causes
A non-responsive ADB can be triggered by several specific issues:
- Stuck or crashed ADB server – ADB runs as a server (background process), and occasionally it can freeze due to code errors or conflicts with other processes.
- Device not connected or USB debugging disabled – if the USB cable doesn't support data transfer, the device isn't authorized, or the "USB debugging" option is turned off, ADB cannot establish a connection.
- Corrupted or outdated USB drivers (on Windows) – on Windows, ADB requires specific drivers. If they are outdated, corrupted, or conflict with other drivers, ADB fails to communicate with the device.
- Port 5037 conflict – ADB defaults to port 5037. If another application (e.g., another ADB instance or a program using the same port) occupies it, ADB cannot start.
- Incorrect PATH environment variable settings – if the path to the
platform-toolsfolder (whereadb.exeoradbresides) isn't added to PATH, the system may not find the executable, or an incorrect version might be used. - Blocking by antivirus or firewall – some antivirus programs and system firewalls may mistakenly identify ADB as malicious and block its network or device access.
- Corrupted Android SDK Platform-Tools files – if files in the
platform-toolsfolder were damaged during download or update, ADB may malfunction.
Solutions
Method 1: Restart the ADB Server
This is the simplest and often most effective method. Restarting the ADB server clears stuck processes and re-establishes the connection.
- Open a terminal (Command Prompt, PowerShell on Windows; Terminal on macOS/Linux).
- Run the command to stop the server:
adb kill-server - Then start the server again:
adb start-server - After seeing "daemon started successfully", check if ADB works:
adb devices
If the issue was a stuck server, it should now be resolved.
Method 2: Verify Device Connection
Ensure both physical and software-level device connectivity is correct.
- Connect your Android device to the computer using a USB cable that supports data transfer (not just charging).
- On the device, enable USB debugging: Settings → Developer options (if not visible, tap "Build number" in "About phone" 7 times) → USB debugging.
- On first connection, an authorization prompt will appear on the device – confirm it.
- In the terminal, run:
adb devices- If the device appears as
device– connection is established. - If
offline– try reconnecting the cable, rebooting the device, or restarting the computer. - If the device isn't listed – check the cable, USB port, and drivers (see Method 3).
- If the device appears as
Method 3: Update USB Drivers (for Windows)
On Windows, ADB drivers frequently cause issues, especially after system or Android Studio updates.
- Open Device Manager (Win + X → Device Manager).
- Locate your device:
- Usually under "Portable Devices" or "Other devices".
- May appear as "Android" or with a yellow exclamation mark.
- Right-click the device → "Update driver".
- Select "Browse my computer for drivers".
- Point to your Android SDK's
platform-toolsfolder. Typically:
Or, if installed via Android Studio, locate it through SDK Manager.C:\Users\Имя_пользователя\AppData\Local\Android\Sdk\platform-tools - If drivers fail to install, download ADB drivers from your device manufacturer's website (e.g., Samsung, Xiaomi) or use Google's universal driver (included in Platform-Tools).
- After installation, restart the computer and check
adb devices.
Method 4: Check and Configure the PATH Environment Variable
If ADB isn't found system-wide or the wrong version is used, it can cause hangs.
Check current PATH:
- Windows (Command Prompt or PowerShell):
echo %PATH% - macOS/Linux (Terminal):
Look for the path toecho $PATHplatform-tools(e.g.,C:\...\Sdk\platform-toolsor/Users/.../Library/Android/sdk/platform-tools) in the output.
Add to PATH (if missing):
- Windows:
- Open Control Panel → System → Advanced system settings → Environment Variables.
- Under "System variables", find
Path, select "Edit". - Click "New" and add the full path to the
platform-toolsfolder. - Click OK and restart all open terminals.
- macOS/Linux:
- Open
~/.bashrc,~/.zshrc, or~/.profilein a text editor. - Add a line (replace
/path/towith your actual path):export PATH=$PATH:/path/to/android-sdk/platform-tools - Save the file and run:
source ~/.bashrc # or source ~/.zshrc - Or simply restart the terminal.
- Open
After configuring PATH, verify which ADB version is in use:
adb version
Ensure it's the expected version (e.g., 1.0.41 or higher).
Method 5: Temporarily Disable Antivirus and Firewall
Antivirus software and system firewalls may block ADB, especially if it's unsigned or uses network ports.
- Temporarily disable your antivirus (e.g., Windows Defender, Avast, Kaspersky) and Windows Firewall.
- For Windows Defender: Windows Settings → Update & Security → Windows Security → Virus & threat protection → Manage settings → turn off real-time protection.
- For Firewall: Control Panel → Windows Defender Firewall → Turn Windows Firewall on or off.
- Try running the ADB command again (e.g.,
adb devices). - If the problem disappears, the antivirus/firewall was the culprit.
- Configure exceptions:
- In your antivirus, add the
platform-toolsfolder (e.g.,C:\Users\Имя\AppData\Local\Android\Sdk\platform-tools) to exclusions. - Also add an exclusion for the
adb.exe(Windows) oradb(macOS/Linux) executable. - In the firewall, allow inbound/outbound connections for
adb.exe.
- In your antivirus, add the
- Re-enable your antivirus and firewall.
Method 6: Reinstall Android SDK Platform-Tools
If ADB files are corrupted or outdated, reinstalling Platform-Tools often fixes the issue.
- Download the latest version of Android SDK Platform-Tools from the official site: developer.android.com/studio/releases/platform-tools.
- Extract the archive to a temporary folder.
- Replace the
platform-toolsfolder in your Android SDK:- Default path on Windows:
C:\Users\Имя\AppData\Local\Android\Sdk\platform-tools - On macOS:
/Users/Имя/Library/Android/sdk/platform-tools - On Linux:
/home/Имя/Android/Sdk/platform-toolsor/usr/lib/android-sdk/platform-toolsDelete the oldplatform-toolsfolder and copy the new one from the archive.
- Default path on Windows:
- Alternatively, if you use Android Studio:
- Open Android Studio → SDK Manager (icon in top-right or File → Settings → Appearance & Behavior → System Settings → Android SDK).
- Go to the SDK Tools tab.
- Uncheck "Android SDK Platform-Tools", click Apply → OK to uninstall.
- Then re-check the box and click Apply to reinstall.
- After installation, restart your computer and test ADB:
adb version adb devices
Prevention
To minimize the risk of the "ADB not responding" error recurring, follow these best practices:
- Regularly update Android SDK Platform-Tools via SDK Manager or the official site. New versions often include stability fixes.
- Use high-quality USB cables and ports – cheap cables may support charging only, not data. Connect directly to the computer, avoiding USB hubs.
- Avoid port conflicts – if you have multiple development tools installed (e.g., Genymotion, BlueStacks), they may use port 5037. If needed, change ADB's port with
adb -P 5038 start-serverand configure other tools to use the new port. - Add ADB exceptions in antivirus and firewall immediately after installation to prevent blocking.
- Monitor the PATH environment variable – ensure only one version of
platform-toolsis in PATH to avoid version conflicts. - Periodically verify SDK file integrity – especially after Android Studio or other tool updates. If strange errors arise, reinstall Platform-Tools.