0

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?

Aubin
  • 14,617
  • 9
  • 61
  • 84
Tim
  • 123
  • 1
  • 2
  • 11

2 Answers2

1

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

Irrationnelle
  • 492
  • 1
  • 8
  • 13
  • That's great. Unlike the Jack compiler, I don't have to recompile the project every time using retrolambda. – Tim Feb 22 '17 at 17:56
1

Updates :

Lambda Expression is now supported in Android Studio 3.0

Oussaki
  • 1,449
  • 2
  • 21
  • 30