gradle-retrolambda icon indicating copy to clipboard operation
gradle-retrolambda copied to clipboard

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

Open guliash opened this issue 8 years ago • 4 comments

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!

guliash avatar Aug 09 '17 14:08 guliash

@guliash Thank you very much for this!

suomi35 avatar Dec 07 '17 00:12 suomi35

@guliash Very valuable help, this. Thanks!

oliverhausler avatar Jan 02 '18 02:01 oliverhausler

thank you for you help

zhaopanlong avatar Apr 25 '18 06:04 zhaopanlong

thank you bro, already fixed this problem!

JayneVong avatar Mar 03 '20 12:03 JayneVong