解决IDEA报错:Lambda expressions are not supported at language level‘6‘

  • Reason: JDK version is 1.6, Lambda expressions are not supported
  • Solution:
    Select File → Project Structure → Projectand modify Level to 8-Lambdas, type annotations etc.

  •  If the problem is not solved, then change the Modules to java 8

  • If the problem is not resolved,
  • File --> Settings -->Build, Execution, Deployment Compiler --> Java Compiler, change the version to Java 8: 

 

Guess you like

Origin blog.csdn.net/godlovedaniel/article/details/114688601