Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tool

ZZZZW發表於2015-04-22

重灌作業系統後,要重新配置Android開發環境。配置成功後,新增原本專案時卻出現了錯誤!

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.

解決方法:

1.專案右鍵 ->android tools->Fix Project

2.如果不可以,檢查Project->Properties->Java Compiler確認JDK compliance被設定為1.6, 並且enable specific seetings,經過這兩步問題基本解決。

 

另一個EEROR在更新Android SDK後,經常會遇到一個 “SDK Manager:failed to install” “Tools Can't Write” 之類的說Tools檔案不能寫的錯誤。

如果安裝過程中提示“SDK Manager:failed to install”,不要急,先退出,然後

1.進入sdk的temp資料夾,會有一個下載好的tools_r06-windows.zip(名字可能有一點不一樣)

2.解壓此檔案,出現tools_r06-windows資料夾

3.進入,直接將tools_r06-windows裡的所有檔案複製並覆蓋掉sdk根目錄的tools資料夾中的檔案

相關文章