IntelliJ Update -> get Error by lambda

前端 未结 1 1984
故里飘歌
故里飘歌 2021-01-02 09:10

I updated my IntelliJ IDEA this morning and after that I openend my project and suddenly i get an error in my lambda expressions.

First i got this one:



        
相关标签:
1条回答
  • 2021-01-02 09:23

    You have configued your Project language level, you need also to configure Module language level. Read more on Configuring Global, Project and Module SDKs.

    Go to Project Structure → Module tab (⌘ CMD+; on MacOS or Ctrl+Alt+Shift+S on Windows OS) and check Language level of your module there:

    You may also need to change the Java compiler version as well. Go to Settings dialog (⌘ CMD+, on MacOS or Ctrl+Alt+S on Windows OS), navigate through Build, Execution, Deployment → Compiler → Java Compiler (or just type javac in the search box on top) and change Java Compiler version as below:

    0 讨论(0)
提交回复
热议问题