Closed kustra closed 7 years ago
Sorry, I don't know what in proguard would cause issues. Is it possible you can reproduce with a similar proguard config on a sample lib? If so you can post an issue with the jar to https://github.com/orfjackal/retrolambda to get help figuring out why it's failing.
The issue turned out to be reproducible with just a few lines of code. Here's the relevant issue: https://github.com/orfjackal/retrolambda/issues/124 Will keep this issue updated with the results.
Thanks, might want to include retrolambda's output, you can get it by running gradle with --info
The issue has been resolved. I ended up adding retrolambda to the library as well, and using it to produce Java 6 bytecode instead of Java 7, which caused the error. See the related retrolambda issue for details.
I'm developing a closed source library that I'm obfuscating using proguard before uploading it to Maven. The library is using Java 6 syntax, so no retrolambda.
When I try to use this library in my app (using retrolambda and Java 8 syntax), I run into the same issue as described in #31, but with my own library, and not Google's support libs. If I include a non-obfuscated version of my library in the app, it works fine. If I include -noverify in my JVM args, it also works fine, but I'm not exactly comfortable with this solution.
Since I have access to the Proguard file of the library, we might as well try to figure out what's causing the issue. Please find the file below. We're using the proguard-android-optimize.txt as the default proguard config.
Do you see anything that looks suspicious? Is there any requirement for an obfuscated library to be usable in an app using retrolambda?
Thank you