Java问题解决:Java compiler level does not match the version of the installed Java project facet.

时间:2021-05-03 07:04:45

问题原因:Java编译器级别与Facted Project 中的Java 版本设定不匹配。

解决办法:将两者设置一致

1.查看Java compiler level :

  选中项目右键properties->Java Complier:由图可知compiler level是1.8

Java问题解决:Java compiler level does not match the version of the installed Java project facet.

2.修改Project Facets的java值,使其与java complier相同:

Java问题解决:Java compiler level does not match the version of the installed Java project facet.

搞定!