当前位置: 代码迷 >> 综合 >> '' operator is not allowed for source level below 1.7
  详细解决方案

'' operator is not allowed for source level below 1.7

热度:78   发布时间:2024-01-12 10:14:43.0

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

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

解决:

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

  相关解决方案