1. Make sure your computer has the original Android SDK Platform Tool. You can check out our guide on how to install Android SDK Platform Tools on your computer.
2. Extracting the Android SDK Platform Tools gives you a “platform-tools” folder.
3. In the Windows search box at the bottom, type “task manager” and press the “Enter” button. This should open the Task Manager window.
4. Right-click on “adb” and select “End task”. If you can’t find it, skip to the next step.
5. Open the “platform-tools” folder, type “CMD” in the address bar, and hit “Enter”.
6. You should see the “Command Prompt” on your screen.
7. Run the following command to kill the ADB server
adb kill-server
8. Now, execute the following command to restart the ADB server:
adb start-server
To verify if the error is fixed, connect your phone to the computer via a USB cable and run the command which was previously giving the “cannot connect to daemon” error.
2. Check Your USB Connection
If the above solution did not work, make sure your Android smartphone is properly connected to your computer via a USB cable. Gently push both ends of the USB cable to make sure the connection is not loose.
Further, you need to check if the USB cable or USB port is damaged. To check if the USB port is damaged, use a different port and run the command to check if the error message appears.
If the problem persists, try changing the USB cable as well. When getting such errors, changing the USB cable often does the trick. Get a high-quality USB cable and verify the problem.
3. Make Sure USB Debugging is Enabled
To run the ADB commands, it is required to enable USB debugging on your Android phone. It is located within the “Developer options”. If you can’t find Developer options within the Settings app, go to Settings > About phone section, and tap 7 times on the build version. It will enable Developer options.
Now, go to the Developer options, and check if USB Debugging is turned off. If yes, turn it on. Check if the problem is fixed.
If you have connected your Android device for the first time to the computer for ADB purposes, you’ll need to authorize the computer. This option should pop up as soon as you connect your phone to the computer via a USB cable and enable USB debugging.
4. Disable Firewall and Antivirus
A firewall or antivirus could be blocking the ADB connection. When there’s a problem with the ADB connection, you are likely to see a “cannot connect to daemon” error. To check if the firewall or antivirus is causing the problem, disable them temporarily.
Follow these steps to disable Windows Firewall:
- Type “Windows Security” in the search box at the bottom and hit “Enter”.
- Tap on “Firewall & network projection” from the left panel.
- Click “Domain network” and toggle off “Microsoft Defender Firewall”.
- Now, go back to the previous screen and click “Private network”.
- Turn off the “Microsoft Defender Firewall” for this as well.
- Do the same for “Public network”.
Now, connect your phone to the computer via a USB cable and run the command to check if the problem is fixed.
Important
Do not forget to enable the firewall for the Domain network, Private network, and Public network. It will strengthen your device’s security. Also, if you disabled any antivirus software, turn them on.
If the error still shows up on your screen, disable all antivirus software on your PC and then verify the problem.
We hope this guide was helpful to you. Which one of the aforementioned solutions fixed the ADB cannot connect to daemon error on your computer? Share your valuable thoughts in the comments below.