情况出现:

打开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。Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer
    2. 使用命令:tasklist|findstr "5440"  通过PID找出进程。Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer
    3. 调出任务管理器,找到这个进程,结束进程。
    4. 使用命令:adb start-server 启动adb就行了

相关文章:

  • 2022-01-18
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2021-05-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案