could not read ok from ADB Server * failed to start daemon error: cannot connect to daemon

C:\Users\Administrator>adb devices -l
List of devices attached
adb server version (31) doesn't match this client (40); killing...
could not read ok from ADB Server
* failed to start daemon
error: cannot connect to daemon
--------提示上面的信息,解决方案如下---------------
C:\Users\Administrator>cd\

C:\>D:

D:\>cd D:\androidsdk\platform-tools

D:\androidsdk\platform-tools>netstat -aon|findstr "5037"
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       10676

D:\androidsdk\platform-tools>tasklist|findstr "10676"
LdsMobileLink.exe            10676 Console                    1     27,344 K

--------手动结束上面进程,从新adb devices -l-------------------------------------------------
D:\androidsdk\platform-tools>adb devices -l
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
2PFNW18B08014453       device product:JKM-AL00b model:JKM_AL00b device:HWJKM-HM transport_id:1

你可能感兴趣的:(appium)