Java compiler level does not match the version of the installed Java project facet

版本不匹配把

首先点击Windows -> Perfenrences -> java -> Compiler

我们可以看到 Compiler comliance level 的那个数字是10

Java compiler level does not match the version of the installed Java project facet

然后点击 eclipse 顶上的

Project —> Properties —> Project Facets 然后修改java版本,修改成10

Java compiler level does not match the version of the installed Java project facet

结束