adb.exe端口被占用,起不来报错
一、准备部署android功能调试时:报错
Please ensure that adb is correctly located at 'D:\ProgramFiles\eclipse_jee_oxygen\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe' and can be executed.
二、为了进入android应用的data/data目录,执行 adb shell时:报错
adb server version (32) doesn't match this client (39); killing...
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:
通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
貌似是adb起不来,端口被占用了:
查问题:
第一步,查找ADT中ADB通信的端口号。
命令行:netstat -ano | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9865
第二步,查出PID。
tasklist | findstr "9865"
sjk_daemon.exe 9865
然后百度sjk_daemon.exe,发现时金山手机助手:然后卸载掉就ok了。