This is described in the user manual of JetBrains. Project language level
It has two functions:
- check syntax compatibility when writing code. For example, if it is set to 7, you can’t use the features above jdk1.7 when writing code, no matter what version of JDK you use. Features like functional interfaces cannot be used, and the idea will prompt an error. Compile the source code to the bytecode of the target version. For example, if it is set to 6, the compiled code is JDK6 compatible regardless of whether JDK7 or 8 is used ol>
Read More:
- JetBrains compilation error is due to project language level
- Diamond types are not supported at this language level appears in IntelliJ
- Error: lnk1168. Unable to open e::: language ⁃ project3 ⁃ debug ⁃ project3.exe for writing
- Error lnk2038 occurred during PCL code compilation: detected “error” during PCL code compilation_ ITERATOR_ DEBUG_ Mismatch of level: value ‘0’ does not match value ‘2’ solution
- Syntax error, annotations are only available if source level is 1.5 or greater.
- Wrong path to add PCH file. Apple llvm 9.0 – language cannot be found in the new project
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- scalac: Token not found: C:\Users\User\AppData\Local\JetBrains\IntelliJIdea2020.3\compile-server\to
- Andorid: Installation failed due to invalid APK file due to version mismatch
- Error checking for updates: unable to start update checking (error code is 4:0x80070005 – system level)
- Eclipse .java File Syntax error, parameterized types are only available if source level is 1.5 or
- Eclipse Syntax error, annotations are only available if source level is 1.5 or greater
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- HTTP Error 401.1 – Unauthorized:Access is denied due to invalid credentials
- QuartusII software exception: error: top level design entity “” is undefined
- Syntax error: unexpected token in uni app project compilation
- R language error:‘ namespace:lazyeval There is no exit_ The object is eval
- “Syntax error, annotations are only available if source level is 1.5 or greater”
- The out folder does not appear under the idea project. Set the entire compilation information to the target folder
- Syntax error, annotations are only available if source level is 1.5 or greater