cannot bind to 127.0.0.1:5037解决方法


启动monkeyrunner 或 uiautomatorviewer时报错:

09:54:05 E/adb: error: could not install *smartsocket* listener: cannot bind to
127.0.0.1:5037: 閫氬父姣忎釜濂楁帴瀛楀湴鍧?鍗忚/缃戠粶鍦板潃/绔彛)鍙厑璁镐
娇鐢ㄤ竴娆°? (10048)
09:54:05 E/adb:
09:54:05 E/adb: This application has requested the Runtime to terminate it in an
unusual way.
09:54:05 E/adb: Please contact the application's support team for more informati
on.
09:54:11 E/adb: could not read ok from ADB Server
09:54:11 E/adb: * failed to start daemon *
09:54:11 E/adb: error: cannot connect to daemon
09:54:11 E/ddms: 'D:\Android\ANDROI~1\platform-tools\adb.exe,start-server' faile
d -- run manually if necessary

原因是:5037端口被占用

解决方法:1.查找5037被谁占用   netstat -ano | findstr "3037"

2.查看对应的是哪个任务  tasklist | findstr "4852"

3.启动任务管理器,结束此任务

4.重新打开monkeyrunner 或 uiautomatorviewer

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM