Update class path to

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

then add this to your dependencies

retrolambdaConfig 'net.orfjackal.retrolambda:retrolambda:2.3.0'

Add following code to application block

compileOptions { 
    sourceCompatibility JavaVersion.VERSION_1_8 
    targetCompatibility JavaVersion.VERSION_1_8
}

After this it should work.

 

转自 https://stackoverflow.com/questions/42191221/execution-failed-for-task-appcompileretrolambdadebug