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

Type def recipe not found when migrating to android gradle plugin 3.0.0 with retrolambda 3.2.5. #257

Open guliash opened 7 years ago

guliash commented 7 years ago

Hi!

While migrating to new android gradle plugin I encountered a very strange error.

Type def recipe not found: /Users/guliash/Projects/MigrationRetrolambda/commons/build/intermediates/typedefs.txt

I'm using retrolambda 3.2.5, auto/value 1.2, auto-value-parcel 0.2.5. Because auto-value-parcel has compile dependency on auto/value I had to add (according to the guide):

javaCompileOptions {
    annotationProcessorOptions {
        includeCompileClasspath false
    }
}

After that I got 'Type def recipe not found' error. Only after updating to retrolambda 3.7.0, the error had gone.

Project which reproduces the issue. Just run ./gradlew :commons:assembleDebug.

Sure it is somehow related to the new android gradle plugin and old retrolambda. Just wanted to make it easier to find the solution for someone who is migrating to 3.0.0 (because I could not find it myself after spending a lot of time).

Thank you!

suomi35 commented 6 years ago

@guliash Thank you very much for this!

oliverhausler commented 6 years ago

@guliash Very valuable help, this. Thanks!

zhaopanlong commented 6 years ago

thank you for you help

JayneVong commented 4 years ago

thank you bro, already fixed this problem!