Comments (5)
That log shows that scala/util/Properties
(scala-library jar) was compiled to java8.
I guess, your project uses scala-library 2.12.0-M2 . It's compiled to java8 class file.
If it doesn't use that version, please upload your build.gradle
for analysis
from gradle-android-scala-plugin.
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.
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
// scala
classpath 'jp.leafytree.gradle:gradle-android-scala-plugin:1.+'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
}
Module:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
defaultConfig {
applicationId "pl.qus.xenoamp"
minSdkVersion 15
targetSdkVersion 22
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled true
}
}
packagingOptions {
exclude 'META-INF/beans.xml'
exclude 'about.html'
}
dexOptions {
jumboMode true
incremental true
javaMaxHeapSize "1g"
}
}
apply plugin: 'crashlytics'
// SCALA
apply plugin: 'com.android.application'
// SCALA
apply plugin: 'jp.leafytree.android-scala'
dependencies {
// SCALA
compile 'org.scala-lang:scala-library:2.+'
compile project(':standOut')
// override buga https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=175086
// potem można usunąć excludy i bibliotękę v4, jak to naprawią
//compile('com.android.support:cardview-v7:22.1.1') {
// force = true
//}
//compile('com.android.support:palette-v7:22.1.1') {
// force = true
//}
compile 'com.android.support:cardview-v7:+'
compile 'com.android.support:palette-v7:+'
compile 'com.android.support:appcompat-v7:+'
compile 'com.google.code.gson:gson:2.3'
compile 'com.google.android.gms:play-services-identity:+'
compile 'com.google.android.gms:play-services-base:+'
compile 'com.google.android.gms:play-services-ads:+'
compile 'com.crashlytics.android:crashlytics:1.+'
compile 'de.greenrobot:eventbus:2.4.+'
//compile 'com.google.android.gms:play-services-cast:7.0.0'
//compile 'com.android.support:support-v4:22.0.0'
//compile 'com.android.support:mediarouter-v7:22.0.0'
compile('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v4'
}
compile fileTree(include: ['avocarrot-sdk-*.jar'], dir: 'libs')
compile files('libs/cling-core-2.0.1.jar')
compile files('libs/cling-support-2.0.1.jar')
compile files('libs/seamless-xml-1.1.0.jar')
compile files('libs/seamless-http-1.1.0.jar')
compile files('libs/seamless-util-1.1.0.jar')
compile files('libs/cuelib-1.2.1-2008-06-13.jar')
compile files('libs/dropbox-android-sdk-1.6.3.jar')
compile files('libs/jdom-2.0.6.jar')
compile files('libs/json-simple-1.1.1.jar')
compile files('libs/jetty-client-8.1.17.v20150415.jar')
compile files('libs/jetty-continuation-8.1.17.v20150415.jar')
compile files('libs/jetty-http-8.1.17.v20150415.jar')
compile files('libs/jetty-io-8.1.17.v20150415.jar')
compile files('libs/jetty-security-8.1.17.v20150415.jar')
compile files('libs/jetty-server-8.1.17.v20150415.jar')
compile files('libs/jetty-servlet-8.1.17.v20150415.jar')
compile files('libs/jetty-util-8.1.17.v20150415.jar')
compile files('libs/servlet-api-3.0.jar')
compile files('libs/slf4j-jdk14-1.7.12.jar')
}
from gradle-android-scala-plugin.
Following code downloads and uses scala-library 2.12.0-M1.
compile 'org.scala-lang:scala-library:2.+'
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:
compile 'org.scala-lang:scala-library:2.11.+'
from gradle-android-scala-plugin.
You can check your scala-library version to execute ./gradlew dependencies -p $your_app_project_dir
from gradle-android-scala-plugin.
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.
from gradle-android-scala-plugin.
Related Issues (20)
- macro paradise HOT 1
- scalaCompileOptions not working HOT 1
- Can't debug scala code in intellij IDEA
- Support Build Tools 23.0.1 HOT 2
- Member functions of Activity not found on clean Build HOT 2
- Support for com.android.tools.build:gradle:1.4.0-beta6
- compileDebugJavaWithJavac download scala compiler 2.10.4
- Gradle test does not invoke tests in test or androidTest Directory
- Error:No such property: bootClasspath for class: com.android.builder.core.AndroidBuilder HOT 14
- Support Gradle Android Experimental
- No Scala SDK in module
- JavaFX (jfxmobile) with gradle-android-scala-plugin gives me "The 'java' plugin has been applied, but it is not compatible with the Android plugins." HOT 2
- How to generate Scaladoc?
- retrolambda support
- Sample projects does not work at all HOT 3
- No such property: bootClasspath for class HOT 1
- Please upload version 1.5 to jcenter and update README.md HOT 1
- It drains out of the memory when gradle executing task "transformClassesWithDex"
- :compileDebugScala: R class not available to scala compiler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-android-scala-plugin.