I just want to share. This is not a question because I already found the solution that works for me.
If you are using emulator and getting the following error:
unable to connect to adb daemon on port: 5037
Try:
This works for me as stated in this SO page:
stackoverflow.com
If this is not working, try the following under SDK\platform-tools:
If you are using emulator and getting the following error:
unable to connect to adb daemon on port: 5037
Try:
Bash:
C:\SDK\platform-tools>adb nodaemon server
This works for me as stated in this SO page:
![stackoverflow.com](/android/forum/proxy.php?image=https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded&hash=a2b1684a43741cdc676981116b6f66e4&return_error=1)
Android Studio error: cannot connect to daemon
I've been using AS for months, but since two days I get an error when I try to run my app: Unable to run 'adb': null 'C:\Users\lapof\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' ...
If this is not working, try the following under SDK\platform-tools:
B4X:
adb kill-server
adb start-server