天天看點

Android Please ensure that adb is correctly located at " "

在Eclipse中運作android中,連接配接虛拟機時遇到adb.exe程式相關問題,如下:

運作android程式控制台輸出

    The connection to adb is down, and a severe error has occured.

    You must restart adb and Eclipse.

    Please ensure that adb is correctly located at 'D:\adt-bundle-windows-x86_64-20130219\sdk\platform-tools\adb.exe' and can be executed.

1.  解決問題:

     百度google大家多說的是任務管理器 kill掉adb 或者重新開機adb server,但我任務管理器就沒有adb ,猜測是某個程式占用了adb端口。于是按此思路查找。

5037為adb預設端口 檢視該端口情況如下:

       netstat -aon|findstr "5037"

      TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       10748

發現10748占用了 5037端口,繼續檢視10748的task,發現是kadb.exe.如下所示

        tasklist|findstr "10748"

        kadb.exe          10748 Console                   

接下來問題就好解決了,在任務管理器kill掉kadb.exe  .

2.重新開機eclipse,運作android項目,問題解決。

繼續閱讀