adb使用过程中报错及解决方法总结

时间:2020-01-16 14:22:28   收藏:0   阅读:634

(1).输入adb devices时,提示:Unable to start adb server: error: protocol fault (couldn‘t read status): Connection reset by peer

  原因:5037端口被占用了(5037为adb默认端口

  解决方法:找到被占用的端口,然后在任务管理器中kill掉,再次连接。

首先输入使用命令:netstat -aon|findstr "5037"  找到占用5037端口的进程信息。

技术分享图片

 

 然后使用:tasklist|findstr "18388"找到进程名称

技术分享图片

 

 最后打开任务管理器,通过名称找到进程,然后结束进程,重新连接即可连接成功

 

(2).报错信息为error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)  could not read ok from ADB Server *could not start server*

原文:https://www.cnblogs.com/RuiRuia/p/12200252.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!