java "lambda expressions not supported at this language level"
2017-04-16 13:39
3503 查看
今天在写lambda函数时,Intellij爆出了”lambda expressions not supported at this language level”的错误。很明显这是IDE里JDK的版本没有设置正确引起的。下面来说说怎么在IDE里设置一下JDK版本解决这个问题。
将以上两项都修改完毕以后,就OK了。
1.修改project的JDK版本
File -> Project Structure -> Project,将Project Language Level设置为8.0 - Lambdas, type annotations etc.这一项。2.修改module的JDK版本
将Project选项里的jdk版本修改以后还不够,还需要将对应module版本也修改正确。File -> Project Structure -> Modules里,将Language Level也设置为8.0 - Lambdas, type annotations etc.这一项。将以上两项都修改完毕以后,就OK了。
相关文章推荐
- Java “lambda expressions not supported at this language level”
- lambda expressions are not supported at this language level
- lambda expressions not supported at this language level
- lambda expressions are not supported at this language level
- lambda expressions are not supported at this language level
- lambda expressions are not supported at this language level解决方法
- lambda expressions are not supported at this language level(需设置project language level)
- Lambda expressions are not supported at this language level
- 解决lambda expressions are not supported at this language level的问题
- lambda expressions not supported at this language level & Android Studio支持lambda,
- lambda expressions are not supported at this language level
- lambda expressions are not supported at this language level错误
- 【lamdba表达式】lambda expressions are not supported at this language level
- lambda expressions are not supported at this language level intellij
- Lambda学习、配置以及lambda expressions are not supported at this language level
- lambda expressions are not supported at this language level
- 【IntelliJ IDEA】lambda expressions are not supported at language level x.x
- Lambda expressions are not supported at language level '1.6
- lambda expression are not supported at this language level (Android Studio中使用lambda表达式)
- IDEA 出现Diamond types are not supported at this language level