Intellij, target JRE vesion doesn’t match project jdk version

The target JRE version for Gradle can be configured from within Intellij via the Gradle JVM setting at Preferences (cmd + ,) > Build, Execution, Deployment > Gradle:

Gradle JVM Setting

The project JDK version can be configured from the Project SDK setting in Project Structure (cmd + ;):

Project SDK setting

(Screenshots taken from IntelliJ IDEA 2020.1.4)

Leave a Comment