This is a sample project to try to include functional java library on Android apps with support for Java 8 lambdas.
It was created using a Mac OS X system, so there are somethings hard coded to it, i.e. it looks for Java home
using /usr/libexec/java_home
.
You must set certain environment variables to make it work if you're not on Mac OS X:
JAVA8_HOME
as path to Java 8JAVA7_HOME
as path to Java 7
Or you can set these using a local.properties
file:
retrolambda.jdk=<path to Java 8>
retrolambda.oldJdk=<path to Java 7>
The only way IntelliJ's Gradle import would not fail for me with this error, was by running this gist and restarting it.