萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 手機 >  >> 手機應用 >> Android 教學

Android adb.exe 無法啟動?端口被豌豆莢佔用,三步解決

Eclipse 控制台報錯:Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed. 實際上 adb 未啟動,常因 5037 端口被其他程式佔用(如豌豆莢守護進程)。

排查與解決步驟

  1. 查看 5037 端口佔用:
    netstat -aon | findstr "5037"
    發現 PID 6540 佔用。
  2. 查詢 PID 對應進程:
    tasklist | findstr "6540"
    顯示 wandoujia_daemon.exe。
  3. 任務管理器結束 wandoujia_daemon.exe。
  4. 重啟 adb 服務:
    adb kill-server
    adb start-server
  5. 重啟 Eclipse,問題解決。

總結:關閉豌豆莢進程 → adb kill-server → adb start-server → 重啟 Eclipse。其他手機助手同理,端口衝突是常見原因。

copyright © 萬盛學電腦網 all rights reserved