cannot connect to daemon at tcp:5037: Connection refused 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