Java compiler level does not match the version of the installed Java project facet.
以前没有碰到过,检出项目的时候,项目中一直有把红叉,花了好几个小时才搞定,现把解决办法记下来,免得下次再遇到这个问题又要花那么多时间。

问题原因:

Facted Project 中的Java 版本设定与项目的Java编译器的compliance level设定不一致。

解决办法:

把两者设置成相同。

第一步:查看Compiler compliance level

右键Project | Properties | Java Compiler(type filter text输入compiler可快速定位),如下图所示:

Eclipse报错Java compiler level does not match the version of the installed Java project facet.解决办法

根据图中显示可知,Compiler compliance level是6.0(当然您的项目该值很可能不是6.0)

第二步:修改Project Facets的Java值,使之和Compiler compliance level相同:

右键Project | Properties | Project Facets(type filter text输入facet可快速定位):

Eclipse报错Java compiler level does not match the version of the installed Java project facet.解决办法
=>选中Java那行

=>点击Modify Project…按钮

=>修改Java的值,使之和Compiler compliance level相同(本例为6.0)

Eclipse报错Java compiler level does not match the version of the installed Java project facet.解决办法

大功告成!

相关文章:

  • 2021-07-17
  • 2021-08-11
猜你喜欢
  • 2021-04-04
  • 2021-04-01
  • 2022-02-02
  • 2021-05-11
  • 2021-04-18
  • 2021-09-18
  • 2022-02-20
相关资源
相似解决方案