ADB 出现error:could not install *smartsocket*listener:cannot bind to 127.0.0.1:5037

在AndroidStudio中run中找不到真机,在cmd中adb remount出现如下错误:

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)

could not read ok from ADB Server

*failed to start daemon*

error:cannot connect to daemon

原因:就是adb程序的端口被占用,接下来只要打开任务管理器将占用端口的程序kill掉即可

可以借鉴网上的方法定位问题:

  • 解决方法:

    1. 首先要找到占用adb端口的程序,5037为adb默认端口,通过cmd查看该端口情况,查询代码为:

    netstat -aon|findstr "5037"

    2 . 通过以上查询可知adb端口号被6404占用了,接下来继续通过cmd查询6404代表的程序,代码如下:

    tasklist|findstr "6540"

    17. error: cannot connect to daemon(adb.exe start-server' failed启动失败,端口占用)

    3 . 以上已经真相大白,我电脑上的360手机助手程序占用了接口,接下来打开任务管理器找到对应的程序kill掉,重新打开编译器即可。

    17. error: cannot connect to daemon(adb.exe start-server' failed启动失败,端口占用)



参考网上文章:https://www.aliyun.com/jiaocheng/12706.html


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值