1、在用MONKEY跑性能时遇到
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK* failed to start daemon *error: unknown host service
解决办法:
在cmd窗口输入:adb nodaemon server
显示:cannot bind 'tcp:5037'
接着输入:netstat -ano | findstr "5037"
显示的内容如下方所示:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 15826输入 tasklist | findstr "8516"
sjk_daemon 8516 Console 1 3,071 K
哦,原来是sjk_daemon进程占了adb的端口。
查看列表:
cmd窗口输入:tasklist
显示:
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
System Idle Process 0 Services 0 24 K
System 4 Services 0 1,128 K
sjk_daemon 963 Console 1 3,071 K
tasklist.exe 1260 Console 1 5,856 K
将这个进程kill掉:taskkill /f /pid 963
如果这个命令提示无权限,可以去windows的“任务管理器”中“进程”那个窗口,找到这个进程,将它杀掉。
再运行adb devices,就没有问题了。
C:\Users\lizy>adb devices
4df7f482396a301d device
参考文章:http://blog.csdn.net/liranke/article/details/4999210
http://blog.csdn.net/liranke/article/details/42524851