Today monkey's simple environment configuration, ready to start monkey, but in the Command Control window input Unable to enter the ADB shell, prompted the error "Unknown host service"
find the data found that because the computer's 5037 port is occupied by a program (ADB in ANDROID_SDK requires 5037 ports), then we need to turn off this program.
Start..... 1. First you need to find the program, using the command Netstat-ano |find "5037" to see the process PID that occupies 5037 ports, for example, the last column shown 808 represents, a process with a PID of 808 occupies 5037 ports. 2. Two ways to see which process, one is to continue through the command TASKLIST/FI "PID eq 808 (808 is the PID number, everyone according to their own query out of the process PID replacement), another intuitive way is to
ctrl+alt+delete Open the Task Manager, in the service list to view the PID 808 of the corresponding process3. It seems that 360MobileLink.exe this process is disruptive, we can end the process in the Task Manager, you can also use the command to kill it, enter the Taskkill/pid 808/f (808 is the PID number, everyone according to their own query process PID replacement, note the space between 808 and/F.If you can not kill, then go to manually forcibly uninstall the program it. 4. Finally, restart ADB. ~~~adb kill-server close adb service adb start-server start adb service
Unable to enter ADB shell to prompt for unknown host service workaround