Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 902 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 902 Bytes

Android Functional Java Sample

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.

Config

You must set certain environment variables to make it work if you're not on Mac OS X:

  • JAVA8_HOME as path to Java 8
  • JAVA7_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>

IntelliJ configuration on Mac OS X

The only way IntelliJ's Gradle import would not fail for me with this error, was by running this gist and restarting it.