failed to start daemon error cannot connect to daemon ubuntu code example
Example: cannot connect to daemon at tcp:5037: Connection refused
ps aux | grep 5037
kill -9 <pid of process of your incorrectly running adb>
#then
adb devices
ps aux | grep 5037
kill -9 <pid of process of your incorrectly running adb>
#then
adb devices