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