After Party tricks with RxJava, RxAndroid and Retrolambda, a lot of you folks reached out on an easy and fast way to setup Retrolambda on an android project.

4 easy steps

Download and install jdk8. Add the following to your project’s main build.gradle

buildscript {

repositories {

mavenCentral()

}



dependencies {

classpath 'me.tatarka:gradle-retrolambda:3.2.3'

}

}

3. Now add this to your application module’s build.gradle

apply plugin: 'com.android.application' // or apply plugin: 'java'

apply plugin: 'me.tatarka.retrolambda'

4. Add these lines to your application module’s build.gradle to inform the IDE of the language level: