Unsupported major.minor version 52.0 2.5.0
See original GitHub issuekeep getting error in Android Studio 1.0.1
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'me.tatarka:gradle-retrolambda:2.5.0'
}
}
repositories {
mavenCentral()
}
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
retrolambda {
jdk System.getenv("JAVA8_HOME")
oldJdk System.getenv("JAVA7_HOME")
javaVersion JavaVersion.VERSION_1_7
jvmArgs '-arg1', '-arg2'
}
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.aaa.bbb.android"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
JAVA7_HOME=C:\Program Files\Java\jdk1.7.0_65 JAVA8_HOME=C:\Program Files\Java\jdk1.8.0_25 JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
Issue Analytics
- State:
- Created 9 years ago
- Reactions:4
- Comments:36 (3 by maintainers)
Top Results From Across the Web
How to Fix Unsupported major.minor Version 52.0 Error in Java
The unsupported major.minor version error occurs due to a Java version mismatch. When a Java project is compiled on a higher version of...
Read more >Fixing Unsupported major.minor version 52.0 Error in Java
Unsupported major.minor version 52.0 comes when you are trying to run a class compiled using Java 1.8 compiler into a lower JRE version...
Read more >Unsupported major.minor version 52.0 - Google Groups
Hello, we get an error "Caused by: java.lang.UnsupportedClassVersionError: hudson/plugins/sonar/SonarRunnerInstallation$1 : Unsupported major.minor version ...
Read more >How to deal with Unsupported major.minor version 55.0, 57,0 ...
UnsupportedClassVersionError is always that you have compiled source file in higher JDK version and trying to run on lower JRE. The exact cause...
Read more >Unsupported major.minor version 52.0 error seen when ...
Unsupported major.minor version 52.0 error seen when installing Spring Cloud · Article Number: 03932 □ Publication Date: June 2, 2018 □ Author: Pivotal ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi all FYI, It’s happening randomly for a couple of weeks now. I can get rid of it only adding
to my
gradle.properties
.JAVA_HOME
andJAVA8_HOME
are properly set too. IvanJust a heads up, it was as simple as changing the SDK path in project settings to point to my JDK 8 home directory. I had started my project before including this plugin and was at that pointed to 7, but during setup for this library installed 8, but didn’t update my project settings. Updating the path fixed the issue for me. HTH