Giter VIP home page Giter VIP logo

Comments (5)

saturday06 avatar saturday06 commented on June 30, 2024

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.

ssuukk avatar ssuukk commented on June 30, 2024

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.

saturday06 avatar saturday06 commented on June 30, 2024

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.

saturday06 avatar saturday06 commented on June 30, 2024

You can check your scala-library version to execute ./gradlew dependencies -p $your_app_project_dir

from gradle-android-scala-plugin.

ssuukk avatar ssuukk commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.