In the M9 announcement it was said that incremental compilation is now supported. Does this also work with Gradle, especially Android? If yes, how to enable it?

推荐答案

Update:截至Kotlin 1.1.1,Gradle incremental compilation is now enabled by default.

---旧答案:

For now incremental compilation only works in the IDE when you use the Make algorithm supported by IntelliJ IDEA. We are looking into extending this to other build systems, but we are not there yet.

Kotlin相关问答推荐

这些Kotlin函数等效吗?

如何将时间值格式化为00:00和00:00:00 Kotlin?""""

在kotlin中使用List(mylist. size){index—TODO()}或Map迭代>

访问者闭包中的Kotlin序列yield 率

为什么使用 return instance ?: synchronized(this) { instance ?: PreferenceParameterState(context) } 时无法获得单例?

kotlin 父类具有依赖于抽象变量的变量

我可以在 Kotlin 中使用接口类型作为构造函数参数吗

Kotlin 可打包类抛出 ClassNotFoundException

Kotlin 代码是如何编译成原生代码的?

如何使用 Findbugs 避免 kotlin 文件

如何在Spring Boot应用程序上启用承载身份验证?

在java代码中使用kotlin库

如何捕获传递给模拟函数的参数并返回它?

Android 与 Kotlin - 如何使用 HttpUrlConnection

TornadoFX 中设置 PrimaryStage 或 Scene 属性的方法

Kotlin数据类打包

Kotlin扩展函数与成员函数?

如何在不绑定ViewModel(MVVM)中的UI的情况下使用android导航?

Kotlin 对象 vs 伴生对象(companion-object) vs 包作用域(package scoped)方法

我应该在哪里调用 MobileAds.initialize()?