使用xshell時(shí)出現(xiàn)問(wèn)題:
adb.exe: protocol fault (couldn't read status): connection reset
解決方法:
大多數(shù)情況是5037端口被占用搓扯。5037為adb默認(rèn)端口。
輸入命令:
netstat -aon|findstr "5037"
會(huì)提示:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6344
再查看6344的進(jìn)程名:
tasklist|findstr "6344"
提示:
adb.exe 6344 Console 1 4,480 K
在任務(wù)管理器中結(jié)束adb.exe進(jìn)程胁勺。
之后在xhell中輸入:
adb start-server