Eclipse搭建Android開發環境時adb.exe程式無法執行

來源:互聯網
上載者:User

標籤:adb   android   adb.exe   應用程式   ensure   檔案夾   

問題描述:執行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-64\sdk\platform-tools\adb.exe‘ and can be executed.


首先先查看相關路徑下面是否有platform-tools檔案夾或者platform-tools檔案夾中是否有adb.exe檔案,若均有也就是不是這兩個原因引起的,則執行以下兩個步驟。

第一步:

開始->運行->cmd 中敲入“cd 放置adb.exe檔案的路徑”,例如“cd D:\adt-bundle-windows-64\sdk\platform-tools”;

敲入netstat -aon|findstr "5037"斷行符號(5037為adb預設連接埠),如無輸出則說明該連接埠未被佔用,則直接進行第二步。

否則:

例如輸出的該連接埠情況如下:

      TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       6540

發現6540佔用了5037連接埠,敲入tasklist|findstr "6540"斷行符號查看6540連接埠的進程是什麼

例如

        wandoujia_daemon.exe          6540 Console                    1      4,276 K

那麼開啟工作管理員的進程結束wandoujia_daemon.exe進程。


第二步:

cmd跳到放置adb.exe檔案路徑下,

敲入adb kill-server斷行符號,再敲入adb start-server,最後重啟Eclipse。

本文出自 “8422499” 部落格,請務必保留此出處http://8432499.blog.51cto.com/8422499/1438178

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.