標籤: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