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
Error:Cause: scala/util/Properties$ : Unsupported major.minor version 52.0 #66
Comments
That log shows that |
Ive verified that my scala library jars were compiled for 50.0 BUT!.. My android studio recreates it as 52.0 in gradle cache! Why? Project: // Top-level build file where you can add configuration options common to all sub-projects/modules. allprojects { Module: apply plugin: 'com.android.application' android { compileOptions { defaultConfig { buildTypes { packagingOptions { dexOptions { apply plugin: 'crashlytics' dependencies { // SCALA compile 'com.android.support:cardview-v7:+' compile 'com.google.code.gson:gson:2.3' |
Following code downloads and uses scala-library 2.12.0-M1.
It's unsupported by gradle-android-scala-plugin because scala-library 2.12.* depends on java8 (see also README.md) Please use scala-library 2.11 series:
|
You can check your scala-library version to execute |
Aaaah... I wouldn't have thought that a minor version number would bring such a big change. Thanks for your response, I guess you can close this. |
My project used to build before, now (all of the sudden) it fails with:
Error:Cause: scala/util/Properties$ : Unsupported major.minor version 52.0
I couldn't get any info on this error, the only thing I discovered that it is caused by this line in build.gradle:
apply plugin: 'jp.leafytree.android-scala'
More info here: http://stackoverflow.com/questions/31492714/building-android-app-with-scala-bad-class-file-magic/31494910#31494910
Might that be due to some scala class being compiled to java 8? If yes, what can I do? I tried everything, including removing android studio, caches, sbt, gradle, scala jars, libraries, anything named "scala" etc.
Some more info from log:
Caused by: java.lang.UnsupportedClassVersionError: scala/util/Properties$ : Unsupported major.minor version 52.0
at java_lang_ClassLoader$loadClass.call(Unknown Source)
at jp.leafytree.gradle.AndroidScalaPlugin.scalaVersionFromClasspath(AndroidScalaPlugin.groovy:132)
at jp.leafytree.gradle.AndroidScalaPlugin$scalaVersionFromClasspath$0.callStatic(Unknown Source)
at jp.leafytree.gradle.AndroidScalaPlugin.addAndroidScalaCompileTask(AndroidScalaPlugin.groovy:184)
at jp.leafytree.gradle.AndroidScalaPlugin$_apply_closure4_closure18.doCall(AndroidScalaPlugin.groovy:84)
at jp.leafytree.gradle.AndroidScalaPlugin$_apply_closure4.doCall(AndroidScalaPlugin.groovy:83)
at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83)
The text was updated successfully, but these errors were encountered: