-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem setting up retrolambda in build.gradle files #226
Comments
Yeah, I had the same problem - if I added the stuff to the beginning of my app/build.gradle, though, rather than my root build.gradle, gradle completes successfully. (If that's the file that's SUPPOSED to be modified, it would be nice if the docs said so. Hint hint, developers.) However, though gradle finishes the "Rebuild project", if I actually try to debug it, Android Studio says:
|
Same problem here! I don't know what to do,I just need to use a library that implements lambda expression,but I can't compile.I tried to add this part of code |
@BertPe you shouldn't use jack if you are using this library. Why not to use retrolamda in the android library too? |
@BertPe I had the same error, too. One of my libraries had been compiled to java 8. (It was my own library. :P ) Is it an open source library? You might be able to compile it to java 7, possibly using retrolambda as @iNoles suggested. Oh, if you have trouble figuring out which library is causing the trouble, I turned SO answers into two windows batch files which together show you the java version numbers of the classes in a given library: get_versions.bat:
get_classes.bat:
You'll probably need some windowsified unix tools. These might work: http://unxutils.sourceforge.net/ Basically, copy the batch files into the directory with the jars you want to inspect, and run |
It may be worth noting that I was unable to get ordinary retrolambda working with my dependee eclipse project library thing, and thankfully I was able to just use plain java 7 for it. |
Hi,I have a problem. I'm using retrolambda on Android Studio because lambda expression are not supported on it and I need them for my app.
Here's my build.gradle file (about the project)
When I try to synchronize the project with gradle files it shows this error:
"Gradle sync failed: Cause: buildToolsVersion is not specified."
I'll post also the build.gradle file for the specific app module,maybe the problem is that I use another external library:
Thanks everyone.
The text was updated successfully, but these errors were encountered: