RetroLamba not working with android studio

512 views Asked by At

I have added retrolambda to my android project but when I try to run the project it shows the following error.

Error:Execution failed for task ':app:compileRetrolambdaDebug'. A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_71\bin\java.exe''

I have added the library as following

in build.gradle (project file) under dependencies

classpath 'me.tatarka:gradle-retrolambda:3.2.3'
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'

in build.gradle (app module) file I have applied it as plugin.

apply plugin: 'me.tatarka.retrolambda'

project build without error but when I try to run it, it shows the above error. what can be the issue here?

1

There are 1 answers

0
eurosecom On

I use retrolambda in AndroidStudio 2.2.3.

My app build.gradle

....
apply plugin: 'me.tatarka.retrolambda'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

....
...

My project build.gradle

dependencies {

    classpath 'com.android.tools.build:gradle:2.2.3'
    classpath 'me.tatarka:gradle-retrolambda:3.2.0'

}