出自:https://blog.csdn.net/bitcarmanlee/article/details/70195149

1.修改project的JDK版本

File -> Project Structure -> Project,将Project Language Level设置为8.0 - Lambdas, type annotations etc.这一项。 
java "lambda expressions not supported at this language level"

2.修改module的JDK版本

将Project选项里的jdk版本修改以后还不够,还需要将对应module版本也修改正确。File -> Project Structure -> Modules里,将Language Level也设置为8.0 - Lambdas, type annotations etc.这一项。 
java "lambda expressions not supported at this language level"

将以上两项都修改完毕以后,就OK了。

相关文章:

  • 2021-12-10
  • 2021-04-14
  • 2021-10-05
  • 2021-07-28
  • 2021-12-16
  • 2021-06-13
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案