question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unsupported major.minor version 52.0 2.5.0

See original GitHub issue

keep 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:closed
  • Created 9 years ago
  • Reactions:4
  • Comments:36 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
hamencommented, Feb 6, 2015

Hi all FYI, It’s happening randomly for a couple of weeks now. I can get rid of it only adding

org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home

to my gradle.properties. JAVA_HOME and JAVA8_HOME are properly set too. Ivan

7reactions
bennythompscommented, Jan 17, 2015

Just 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found