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

今天重裝了所有的開發工具,在運行android項目時Eclipse報瞭如下的錯誤

錯誤:Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties.

原因就是剛裝的工具,Eclipse環境沒有配置,enable specific seetings選向沒有被選中才出現了這個錯誤。有時也可能是JDK compliance lever的默認設置與安裝的版本不一致導致的此類錯誤,按照下面的方法即可解決問題。

解決方法:

1: 項目上點擊右鍵,選擇 ->android tools ->Fix Project;

2:Project -> Properties->Java Compiler,確認JDK compliance被設置爲1.6,並且enable specific seetings。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章