AS 开发问题:Unable to start adb server
AS 开发问题Unable to start adb server: 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就好了。
- 使用命令:netstat -aon|findstr “5037” 找到占用5037端口的进程PID。

- 使用命令:tasklist|findstr “5440” 通过PID找出进程。

- 调出任务管理器,找到这个进程,结束进程。
- 使用命令:adb start-server 启动adb就行了 (或者重新编译运行也可自动启动adb)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 无尽infinite!

