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

来源:互联网 发布:手机吉他软件模拟 编辑:程序博客网 时间:2024/05/20 13:14

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

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

解决:

右键项目--属性--勾选Enable project  specific  settings--Compiler compliance level--选择1.7--OK

0 0
原创粉丝点击