When I try to test my Android application with an android emulator as always I now suddenly get an error message. I\'m working with Windows 8. So far I tried the following thing
Following works for me every time: go to File->Invalidate Caches/Restart select Invalidate and Restart
And, You are good to go.
Maybe HTTP Proxy
blocked the localhost 127.0.0.1:5037
If you have config the HTTP Proxy
, make sure to exclude the localhost like picture below
Also, port can also be blocked by the firewall and anti-virus firewall, please notice as well.
In case it helps anyone else, for me the problem was related with the USB hub that the tablet was plugged into on the computer (unplugging the webcam which was in use fixed it).
I finally just restarted the computer, and that solved the issue for me.
I saw this on a Mac OS X.
I shut down Android Studio and ran adb get-state
in the terminal. When I started Android Studio back up, the warning had gone away.
BTW, I did just try restarting Android Studio without any luck. I am sure a restart of OS would have fixed it too.
On OSX helped:
Kill all processess using 5037 port
sudo lsof -i |grep 5037
sudo kill PID_NUMBER
Run adb devices from console
adb devices