error: protocol fault (couldn't read status): Connection reset by peer

情况出现:
打开androidstudio,一直连接不上电脑,提示:Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer
问题原因:
大多数情况是5037端口被占用。5037为adb默认端口。
解决办法:
查看哪个程序占用了adb端口,结束这个程序,然后重启adb就好了。

1:使用命令:netstat -aon|findstr "5037" 找到占用5037端口的进程PID。
2:使用命令:tasklist|findstr "5440" 通过PID找出进程。
3:调出任务管理器,找到这个进程,结束进程。
4:使用命令:adb start-server 启动adb就行了

猜你喜欢

转载自www.cnblogs.com/tinybad/p/11145948.html
今日推荐