You need to set the project language level (default for all modules) and the module(s) language level
More Related Contents:
- IntelliJ inspection gives “Cannot resolve symbol” but still compiles code
- How do I change the IntelliJ IDEA default JDK?
- How to set -source 1.7 in Android Studio and Gradle
- Maven Compilation Error: (use -source 7 or higher to enable diamond operator)
- Error: JavaFX runtime components are missing, and are required to run this application with JDK 11 [duplicate]
- How can I fix “unsupported class file major version 60” in IntelliJ IDEA?
- Invalid signature file digest for Manifest main attributes exception while trying to run jar file
- Enable Partial Compilation in IntelliJ IDEA
- Android Studio cannot resolve symbol but code executes correctly
- Maven plugins can not be found in IntelliJ
- Why does IntelliJ give me “Package doesn’t exist” error?
- How to debug a multi-threaded app in IntelliJ?
- Error:java: javacTask: source release 8 requires target release 1.8
- stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)
- Add a properties file to IntelliJ’s classpath
- IntelliJ and JSP/JSTL cannot resolve taglib for JSTL in tomcat7 [duplicate]
- Remove source file comments using IntelliJ?
- Lombok added but getters and setters not recognized in Intellij IDEA
- deploy/debug java code on a remote server using Intellij
- Where is the “server log” for Tomcat when running externally from IntelliJ Ultimate?
- How to set JVM arguments in IntelliJ IDEA?
- IntelliJ: Never use wildcard imports
- IntelliJ doesn’t load javafx packages from Maven dependencies (JavaFX 17)
- What does this symbol mean in IntelliJ? (red circle on bottom-left corner of file name, with ‘J’ in it)
- How to set IntelliJ IDEA Project SDK
- BUG! exception in phase ‘semantic analysis’
- IntelliJ gradle add module dependency
- What does a tilde in angle brackets mean when creating a Java generic class?
- Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle
- What does it mean if a variable has the name “this$0” in IntelliJ IDEA while debugging Java?