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