端口占用問題 ADB Connection Error
阿新 • • 發佈:2019-01-26
ADB Connection Error
在進行真機除錯的時候有時候會遇到 ADB Connection Error問題,這說明你進行除錯的埠被佔用了。
我遇到的問題,報錯程式碼如下:
Unable to create Debug Bridge;Unable to start adb server;error;cannot parse version string ;kg01'C:\users\********\adb.exe,start-server'failed --run manually if necessary。
下面是我的報錯圖片:
解決辦法:
通過報錯得資訊可知埠被酷狗得一個adb.exe佔用了。之後我們要在酷狗資料夾下找到這個adb.exe 檔案,直接刪除掉。並不影響酷狗音樂的使用。
之後我又總結了其他佔用埠得問題比如下面得錯誤程式碼:
Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
'D:*****\adb.exe,start-server' failed -- run manually if necessary
這個解決辦法與上一個解決辦法不同:
通過netstat -aon|findstr “5037” 找出佔用5037埠號的對應pid號。開啟工作管理員,將對應pid號的程序殺死。重啟adb即可。