Reason: the target set by idea’s default kotlin compiler is 1.6, which can be modified to 1.8 or above
Similar Posts:
- [IDEA] Maven Run Project Error: Diamond operator is not supported in – source 1.5″
- [Solved] Runtime JAR file has version 1.4 which is older than required for API version 1.5
- Automatic version change of IntelliJ idea language level and Java compiler
- [Solved] idea Run gui Error: Error:Abnormal build process termination:
- Error:java: javacTask: source release 8 requires target release 1.8
- [Solved] okhttp3 Error: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
- [Solved] IDEA Compile Error: java: Compilation failed: internal java compiler error
- How to Solve IDEA maven Error:Perhaps you are running on a JRE rather than a JDK
- Error:java: Compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error