Eclipse '《》'operator is not allowed for source level below 1.7

报错:'<>' operator is not allowed for source level below 1.7

这是eclipse的编译环境与项目的要求不对应造成的,这个错误一般是导入别的项目才出现的。

解决:

鼠标放在项目上,右键菜单里点击 Properties, 勾选上面的 Enable project specific settings, Compiler Compliance level: 选择1.7以上。

 

posted on 2021-09-03 12:49  癫狂编程  阅读(155)  评论(0编辑  收藏  举报

导航

好的代码像粥一样,都是用时间熬出来的