1. Modify global settings
Modify project -> Project Language Level-> Select a level lower than the current JDK version
2. Modify model settings
model-> Select model -> Language-> Select a level lower than the current JDK version
3. Modify setting
Compiler, java compiler version
Similar Posts:
- [idea]Error:java: invalid source release: 1.8
- Automatic version change of IntelliJ idea language level and Java compiler
- [IDEA] Maven Run Project Error: Diamond operator is not supported in – source 1.5″
- [Solved] IDEA JDK is 1.8 Warning: Diamond types are not supported at this language level
- What are the reasons for the faceted project problem in Java Web project
- [Solved] IDEA Warning: Information:javac 1.8.0_251 was used to compile java sources
- [Solved] Syntax error, parameterized types are only available if source level is 1.5
- Problems encountered in using Maven – lambda expressions are not supported at language level’5 ‘
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] Java compiler level does not match the version of