eclipse bug之'<>'operator is not allowed for source level below 1.7


eclipse中導入工程,報這個錯'<>'operator is not allowed for source level below 1.7,把jdk改成1.7后,提示Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.,執行fix無效。求高位高手給指點一二。

 

向左轉|向右轉

 解決:

報錯:'<>' operator is not allowed for source level below 1.7

這是eclipse的編譯環境與項目的要求不對應造成的,這個錯誤一般是導入別的項目才出現的。
解決:
右鍵項目--屬性--勾選Enable project specific settings--Compiler compliance level--選擇1.7--OK


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM