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

Does retrolambda support for an android project depends on java project compiling to Java8? #243

Open SetoKaiba opened 7 years ago

SetoKaiba commented 7 years ago

Does retrolambda support for an android project depends on java project compiling to Java8? I get the error below. Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above

kassim commented 7 years ago

should be able to add Retrolambda to the Java 8 project config to make it work I don't believe it will compile with a pre-compiled Java 8 library dependency

SetoKaiba commented 7 years ago

Then there's no way to use a pre=compiled java 8 library, right?

kassim commented 7 years ago

perhaps you can decompile it so it can be recompiled with retrolambda? but if it is dependent on Java 8 libraries (streams, etc) that won't help

SetoKaiba commented 7 years ago

I see. Thank you.