Inspectopedia Help

No Explicit Java Language Level Given

No Explicit Java Language Level Given

In modules using plugins deriving from the Gradle java plugin (e.g. java-library or application), the java source and target compatibility default to the version of the JDK being used to run Gradle, which may cause compatibility problems with Android (or other) modules.

You can specify an explicit sourceCompatibility and targetCompatibility in this module to maintain compatibility no matter which JDK is used to run Gradle.

Issue id: JavaPluginLanguageLevel

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023