最近在Eclipse 用JAVA上開發 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 "sdk\platform-tools\" and can be executed.
解決方法如下:
1.關閉 Eclipse ,如果你有開啟的話。
2.開啟命令提示字元(cmd)
3.設定當前目錄路徑為你的Android SDK的目錄下有個platform-tools資料夾
4.假設我的資料夾路徑為C:\android sdk\platform-tools\ ,則指令輸入cd C:\android sdk\platform-tools\
5.在輸入adb start-server 若看到 * daemon not running. starting it now on port 5037 * * daemon started successfully * 則表示成功,若看到 * daemon not running. starting it now * ADB server didn’t ACK * failed to start daemon * 則可以開啟工作管理員查看是否有處理常式是adb.exe的,把這個處理常式關閉即可, 若沒有adb.exe這個處理常式的話,建議直接重開機,這樣也能關閉ADB server程式。 重開機後,在將上面的步驟做一遍,就可以看到成功訊息,之後開心使用Eclipse唄。
 
 
arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()