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了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM