Why does MonkeyRunner.waitForConnection() error “Adb rejected adb port forwarding command: cannot bind socket”

末鹿安然 提交于 2019-12-06 16:30:53

I also had come across this problem but killing and restarting the adb server din't solve the issue. I have solved it with below procedure

  1. open command prompt and run below command netstat -ano This lists all PID and port numbers. Make a note of PID listening on port 12345
  2. Go to task manager->Processes tab and from View->Select Coloumns Tick the PID field. Now kill the process with PID noted in previous step.

Now the MonkeyRunner proceeds further.

Note:

12345 port is identified from AdbChimpDevice.java in chimpchat.jar located in

..\android-sdk-windows\tools\lib\chimpchat.jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!