Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsupportedClassVersionError: com/dicedmelon/gradle/jacoco/android/JacocoAndroidPlugin : Unsupported major.minor version 52.0 #11

Closed
tomafc330 opened this issue Nov 27, 2015 · 4 comments
Labels

Comments

@tomafc330
Copy link

Hi there,

I'm running compile version 1.7

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

However I am setting the error in the title when I run ./gradlew jacocoTestReport

Any ideas here? Thanks

@tomafc330
Copy link
Author

@arturdm any suggestions? thanks

@arturdm
Copy link
Owner

arturdm commented Nov 29, 2015

The plugin was build using JDK 1.8 and that's the reason for the failure. You can try setting JAVA_HOME to point to jdk1.8 directory and append jdk8's bin directory to your PATH, e.g.:

PATH=/path-to-jdk8/bin:$PATH JAVA_HOME=/path-to-jdk8 ./gradlew jacocoTestReport

If that doesn't help I'll publish an updated version which works with Java 7 soon.

@arturdm
Copy link
Owner

arturdm commented Nov 29, 2015

@tommytcchan - you can try the latest version now (0.1.1). It should fix the issue and also adds some minor features.

@arturdm arturdm closed this as completed Nov 29, 2015
@arturdm arturdm added the bug label Nov 29, 2015
@tomafc330
Copy link
Author

Great thanks a bunch!

On Sun, Nov 29, 2015 at 11:56 AM, Artur Stepniewski <
notifications@github.com> wrote:

Closed #11
#11.


Reply to this email directly or view it on GitHub
#11 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants