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
- Close Eclipse or Android Studio if either is running (Optional).
- Open Command Prompt.
- Go to the Android SDK
platform-tools
directory. - Type
adb kill-server
. - Type
adb start-server
. - If no error message is thrown while starting ADB server, then
adb
is started successfully.
OR
- Go to Task Manager, open the Processes tab, and end the
adb.exe
process. - Then restart Android Studio.
This may work if there is any problem with adb.