AndroidExtensionsGradleModel Unsupported major.minor version 52.0. Please use JDK 8 or newer

Answered

I try to start intellij idea(2019.1.2) and get the following error:

org/jetbrains/kotlin/android/synthetic/idea/AndroidExtensionsGradleModel : Unsupported major.minor version 52.0. Please use JDK 8 or newer.

I use gradle to build project. Also I see that run build task was failed.

Gradle Version is 4.5. What I am doing wrong?

1
7 comments

What option do you have for Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Gradle JVM? Make sure you have JDK =>1.8 specified there. and for Project JDK also.

1
Avatar
Alexey Lekomcev

I use JDK 1.7 there because 

task wrapper(type: Wrapper) {
gradleVersion = '4.3'
}

and select use gradle 'wrapper' task configuration.

Is it wrong?

 

 

0

Android Gradle integration is not compatible with 1.7 JDK, please switch to 1.8 as a Gradle JVM.

0

How to exclude Android Gradle integration just for the project?

0

@Nat what do you mean?

0

Currently, if I set up the project using JDK 7, I cannot open the project with gradle 4.x at all as it will throw that error. I should have a way to disable that. I already tried to disable "Android" plugin, but it does not work.

0

What are the versions of the IDE, the Gradle and the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Gradle JVM?

What exact error and when do you get?

0

Please sign in to leave a comment.