Android lambda expression settings

256 Views Asked by At

I want to use lambda expressions in my Android project, I followed the Android guide to set up the Jack compiler and it did work.

However, the guide also mentions a known issue that the Jack compiler does not support instant run, and I found it is really time consuming to recompile all the Java files every time.

So, is there any other compiler that can generate intermediate class files, so that I do not have to recompile all the files every time?

2

There are 2 best solutions below

1
On BEST ANSWER

Although it is not official library by Google, I recommend you retrolambda. I think that retrolambda is easier and more simple than Jack Compiler.

0
On

Updates :

Lambda Expression is now supported in Android Studio 3.0