evant / gradle-retrolambda

A gradle plugin for getting java lambda support in java 6, 7 and android
Apache License 2.0
5.3k stars 449 forks source link

Using the lambda expression cannot run the app through the real phone. #202

Closed jun99999 closed 8 years ago

jun99999 commented 8 years ago

apply plugin: 'com.android.application'

android { compileSdkVersion 24 buildToolsVersion '24.0.0'

defaultConfig {
    applicationId "com.example.elixir.beaconversion23"
    minSdkVersion 19
    targetSdkVersion 19
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    debug {
        debuggable true
    }
}

} repositories { jcenter() }

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.0.0' compile 'org.altbeacon:android-beacon-library:2+' compile 'com.android.support:support-v4:24.1.1' }

android{

compileSdkVersion 24

//buildToolsVersion "24rc2"
buildToolsVersion "24.0.0"

defaultConfig {

    jackOptions {
        enabled true
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}}

buildscript { repositories { mavenCentral() }

dependencies {
    classpath 'me.tatarka:gradle-retrolambda:3.2.5'
}

}

// Required because retrolambda is on maven central repositories { mavenCentral() }

apply plugin: 'com.android.application' //or apply plugin: 'java' apply plugin: 'me.tatarka.retrolambda'

image

Bartosz-Kozajda commented 8 years ago

Just delete this:

jackOptions {
        enabled true
    }
jun99999 commented 8 years ago

[image: Inline image 1]

Yes, thanks for your suggestion. After I delete it. Once I run, I need to config this.

On Fri, Aug 5, 2016 at 3:10 PM, Bartosz Kozajda notifications@github.com wrote:

Just delete this:

jackOptions { enabled true }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/evant/gradle-retrolambda/issues/202#issuecomment-237773261, or mute the thread https://github.com/notifications/unsubscribe-auth/AT0rnlQ8OOqgjM8vbZON95FSmLqIN8Yoks5qcuHngaJpZM4JaZy7 .