[ADB] No connected devices have been detected

Hi everyone,

I’m experiencing the following error message on appium server 1.15.0 .

[debug] [ADB] Getting connected devices...
[debug] [ADB] No connected devices have been detected
[debug] [ADB] Could not find devices, restarting adb server...
[debug] [ADB] Restarting adb
[debug] [ADB] Killing adb server on port 5037
[debug] [ADB] Running 'C:\Users\coutn\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 kill-server'

Any tips on how to solve this?
Thank you.

What device are you trying to use? Cloud emulator? Physical device? Virtual emulator?

try to run in terminal:

adb kill-server
adb start-server

probably the adb server did not shut down properly in one of the previous executions.
you can find more in the docs: https://developer.android.com/studio/command-line/adb

virtual emulator … tests on physical devices seem to be less flakey.

works most of the times … ty!