IntelliJ不更改Java版本。

huangapple 未分类评论48阅读模式
英文:

IntellliJ doens't change java version

问题

我在我的IntelliJ项目中遇到了以下错误:

   错误:(136, 14) java: 不支持lambda表达式在-source 1.5中
   (使用-source 8或更高版本以启用lambda表达式)

我去偏好设置中将编译器从1.5更改为8。
这个错误仍然出现,我也尝试了重新启动和重建,但没有帮助。
还有其他建议吗?

英文:

I have the following error in my intelliJ project

   Error:(136, 14) java: lambda expressions are not supported in -source 1.5
   (use -source 8 or higher to enable lambda expressions)

I go to preferences and change the compiler from 1.5 to 8.
This error still appearing, I am trying also restart and rebuild, but it didn't help.
Any other suggestions?

huangapple
  • 本文由 发表于 2020年4月7日 11:36:59
  • 转载请务必保留本文链接:https://java.coder-hub.com/61072441.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定