Incremental Building of Android Kotlin modules with kapt is broken in Gradle >2.13

not-a-bug

(Kirill Rakhman) #1

There seems to be an issue where Android-Kotlin modules with kapt seem to be rebuilt everytime even when no code is changed (but e.g. only a resource).

Here’s the related issue in the Kotlin bug tracker: https://youtrack.jetbrains.com/issue/KT-13179

The problem is worsened by the fact that the latest Android plugin now requires Gradle 2.14.1 which also exhibits this behavior.


(Stefan Wolf) #2

If I understand this correctly, this is a problem with the Android plugin and the Kotlin plugin and not with Gradle itself? Can you confirm?


(Kirill Rakhman) #3

Difficult to say. It appeared only in 2.14 and 2.14.1 but seems to be fixed in 3.0. The Kotlin team is also aware of it and are planing to release a workaround in the next version.