adb socket not working and daemon

I came across the same error. I provided the below command and the issue got solved.

COMMAND :- taskkill /f /im adb.exe


  1. Close Eclipse or Android Studio if either is running (Optional).
  2. Open Command Prompt.
  3. Go to the Android SDK platform-tools directory.
  4. Type adb kill-server.
  5. Type adb start-server.
  6. If no error message is thrown while starting ADB server, then adb is started successfully.

OR

  1. Go to Task Manager, open the Processes tab, and end the adb.exe process.
  2. Then restart Android Studio.

This may work if there is any problem with adb.