Android requires compiler compliance level 5.0....

今天碰到一個奇怪的錯誤,像

Android requires compiler compliance level 5.0. Please fix project properties.錯誤html

加了好幾個項目都如此,至關鬱悶,清除、從新構建項目也不行,沒辦法進行了google和百度的高度搜索,才得以解決問題之症狀:

 

 首先清理項目,而後按如下步驟進行:android

1. project右鍵 ->android tools ->Fix Project

ui

2. 若是不能夠,檢查Project -> Properties->Java Compiler 

    確認JDK compliance被設置爲1.6,而且enable specific seetings.
google

通過這兩步問題基本解決。spa

相關文章
相關標籤/搜索