Missing javaCompileTask for option

Trying to build something with Android Studio 3.0 that worked great in the previous version. Now I see:

Error: Execution completed for task ': mobile-app: transformClassesWithRetrolambdaForDevDebug'.

Missing javaCompileTask for option: dev / debug / 0 from output directory: / Users / myname / mycompany-android-app / MyProject / mobile-app / build / intermediates / transforms / retrolambda / dev / debug / 0

I had a pre-compilation issue that I ran into by adding the following to my build.gradle module inside defaultConfig:

javaCompileOptions {annotationProcessorOptions {includeCompileClasspath false}}

I can't find anything on "javaCompileTask". Could it be related to something else?

+3


source to share


2 answers


I tried using retrolambda version 3.6.1 with Android Gradle plugin 3.0.0-alpha5 and it works. This is a problem with Android version of Gradle plugin 3.0.0-alpha *.

Link:



Currently does not work with Retrolambda plugin. However, you should instead use built-in plugin support for Java 8 language features.

Documented in a section Known Issues

at https://developer.android.com/studio/preview/features/new-android-plugin.html

+6


source


I ended up commenting out the applicable retro lambda plugin and he did it.



+5


source







All Articles