[英]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. 我想在我的Android项目中使用lambda表达式,我按照Android指南设置了Jack编译器,它确实起作用了。
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. 但是,该指南还提到了一个已知问题,即Jack编译器不支持即时运行,我发现每次重新编译所有Java文件确实很耗时。
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 . 尽管它不是Google的官方图书馆,但我还是建议您retrolambda 。 I think that retrolambda is easier and more simple than Jack Compiler.
我认为Retrolambda比Jack Compiler更容易和更简单。
Updates : 更新 :
Lambda Expression is now supported in Android Studio 3.0 Android Studio 3.0现在支持Lambda Expression
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.