2.2.3
to 2.3.3
It seems it all comes down to my project using Kotlin. Actually we have it mixed: some classes use plain old Java while others are written in Kotlin. An incomplete migration. :)
I assume that without Kotlin, replacing apt
with annotationProcessor
would be enough and I wouldn't have ran into this issue at all.
Annotations need to be processed by both annotationProcessor
and kapt
, which seems to be Kotlin's own annotation processor.
For each Gradle dependency that uses annotations, you should have both of the following in your app-level build.gradle
:
annotationProcessor 'com.example.my.library:x.y.z
kapt 'com.example.my.library:x.y.z