0

I can't find the config to set Java language level.

enter image description here

LazyOne
  • 158,824
  • 45
  • 388
  • 391
shqu alun
  • 1
  • 1

2 Answers2

0

You might find the answer here How to change project language level for all project in Intellij

Change the sourceCompality to 1.8, if it didn't work, also change the Project structure JDK.

0

If you are using Maven, in pom.xml file use:

<properties>
    <maven.compiler.target>11</maven.compiler.target>
    <maven.compiler.source>11</maven.compiler.source>
</properties>

If you are using Gradle, in build.gradle file use:

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}
Andrey
  • 15,144
  • 25
  • 91
  • 187