error: protocol fault (couldn't read status): Connection reset by peer
时间: 2024-04-24 20:27:15 浏览: 355
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core d
根据引用\[1\]和引用\[2\]的描述,你遇到了在连接Android Studio时出现的错误提示"Unable to start adb server: error: protocol fault (couldn’t read status): Connection reset by peer"。这个错误通常是由于5037端口被占用所导致的。5037端口是adb默认的端口。
解决这个问题的方法是找到占用5037端口的程序,并结束该程序,然后重新启动adb。你可以使用以下命令来查找占用5037端口的进程PID:
```
netstat -aon|findstr "5037"
```
然后,使用以下命令通过PID找出进程:
```
tasklist|findstr "PID"
```
将PID替换为上一步找到的进程PID。接下来,打开任务管理器,找到该进程并结束它。最后,使用以下命令启动adb:
```
adb start-server
```
这样就应该能够解决这个问题了。希望对你有帮助!
#### 引用[.reference_title]
- *1* [Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer](https://blog.csdn.net/luweicheng24/article/details/80798877)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [adb 连接之 error: protocol fault (couldn‘t read status): Connection reset by peer](https://blog.csdn.net/luoxuexi2020/article/details/115270708)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Unable to start adb server: error: protocol fault couldn't read status: Connection reset by peer](https://blog.csdn.net/viking_xhg/article/details/82780456)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文