adb devices提示“adb server is out of data”解决方法
1、查看5037端口被谁占用了,输入 netstat -aon|findstr “5037”,如下
C:\Users\ceshi>netstat -ano | findstr “5037”
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 22544
TCP 127.0.0.1:5037 127.0.0.1:57006 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57008 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57010 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57012 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57016 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57018 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57021 TIME_WAIT 0
TCP 127.0.0.1:5037 127.0.0.1:57023 TIME_WAIT 0
2、根据PID来查找占用该端口的应用程序,输入tasklist|findstr “22544”,如下
C:\Users\ceshi>tasklist | findstr “22544”
adb.exe 22544 Console 5 7,372 K
3、说明5037端口正在被adb.exe占用,结束进程,输入taskkill /f /t /im adb.exe
4、重新连接手机,