這是eclipse的編譯環境與項目的要求不對應造成的,這個錯誤一般是導入別的項目纔出現的。
解決:
右鍵項目-->Properties-->Java Compiler-->勾選Enable project specific settings--Compiler compliance level-->選擇1.7-->OK
轉載自:http://bbs.csdn.net/topics/391040542?page=1
右鍵項目-->Properties-->Java Compiler-->勾選Enable project specific settings--Compiler compliance level-->選擇1.7-->OK
轉載自:http://bbs.csdn.net/topics/391040542?page=1