解決Eclipse報錯顯示Unable to build: the file dx.jar was not loaded from the SDK folder
阿新 • • 發佈:2018-11-07
由於最近通過SDK-Manager更新了build-tools,當要用到dx.jar這個包時,自動呼叫最新build-tools中dx.jar,但是執行android專案時Console卻提示:
Failed to load C:\Program Files (x86)\Android\android-sdk\build-tools\26.0.0-preview\lib\dx.jar
Unable to build: the file dx.jar was not loaded from the SDK folder
解決步驟:
(1)找到你Android的SDK安裝目錄sdk,進入build-tools資料夾
(2)發現還有很多其他版本的build-tools,而且版本都是順序排列的,我們就選擇倒數第三個(最新版上面那個資料夾),開啟進入lib資料夾
(3)發現26.0.2\lib裡面有dx.jar包,降25.0.0\lib\dx.jar複製貼上到26.0.2\lib目錄下,替換掉原來的dx.jar包
(4)完成,再次啟動Android專案,問題解決!