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?
Please sign in to leave a comment.
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.
I use JDK 1.7 there because
task wrapper(type: Wrapper) {
gradleVersion = '4.3'
}
and select use gradle 'wrapper' task configuration.
Is it wrong?
Android Gradle integration is not compatible with 1.7 JDK, please switch to 1.8 as a Gradle JVM.
How to exclude Android Gradle integration just for the project?
@Nat what do you mean?
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.
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?