简体   繁体   中英

Android lambda expression settings

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?

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

Updates :

Lambda Expression is now supported in Android Studio 3.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM