adb server version (31) doesn't match this client (41); killing...
使用用 adb devices 提示如下错误
C:\Users\Lenovo>adb devices
adb server version (31) doesn't match this client (41); killing...
could not read ok from ADB Server
* failed to start daemon
adb.exe: failed to check server version: cannot connect to daemon
猜测是端口又被某些不法分子占用了,于是执行netstat -ano | findstr " "
C:\Users\Lenovo>netstat -ano | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 12428
TCP 127.0.0.1:5037 127.0.0.1:56658 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56659 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56660 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56779 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56780 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56781 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56833 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56834 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56835 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56881 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56882 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56883 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56933 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56934 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:56935 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57000 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57001 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57002 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57063 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57064 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57065 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57108 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57109 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57110 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57181 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57182 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57183 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57273 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57274 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57275 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57318 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57319 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57320 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57377 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57378 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57379 TIME_WAIT 0
哇塞好大一片,但是最关键的只有第一个,于是执行 tasklist |findstr " "
C:\Users\Lenovo>tasklist |findstr "12428"
360MobileLoader.exe 12428 Console 3 24,296 K
看,猜对了,360!
C:\Users\Lenovo>taskkill -f -t /im 360MobileLoader.exe
错误: 无法终止 PID 12428 (属于 PID 7548 子进程)的进程。
原因: 拒绝访问。
流氓,粗暴一点直接拔掉真机,嘿嘿,看他还占用。在执行一次 adb devices
C:\Users\Lenovo>adb devices
List of devices attached
C9K7N15722004375 device
ok 了