啟動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
