Please ensure that adb is correctly located at……問題解決方案

遇到問題描述:

運行android程序控制臺輸出

    [2013-10-13 16:45:50 - ] The connection to adb is down, and a severe error has occured.
    [2013-10-1316:45:50 - ] You must restart adb and Eclipse.
    [2013-10-1316:45:50 - ] Please ensure that adb is correctly located at '<--此處顯示adb.exe的全路徑-->' and can be executed.

 

  問題分析1

關閉eclipse,打開windows任務管理器,查看進程中是否有adb.exe或adb.exe *32。

  解決方案1

如果有則關閉該進程,重新啓動eclipse即可;

  問題分析2:

windows任務管理器中就找不到adb.exe或adb.exe *32的進程,可以嘗試手動啓動adb.exe ;如果手動啓動後還找不到adb.exe進程,則    只有一種可能就是adb.exe進程的端口被佔用,導致adb.exe未能正常啓動所致(adb默認端口爲5037)。

  解決方案2:

                   1、查看端口使用情況:

                   netstat -aon|findstr "5037"

                    TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5004

                    2、發現5004佔用5037端口,查看5004的task:

                    tasklist|findstr "5004"

                    wandoujia_daemon.exe          5004 Console                    1      4,276 K

                    打開windows管理器結束wandoujia_daemon.exe該進程,啓動eclipse,如果adb.exe未能啓動,手動啓動即可;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章