- Kotlin Plugin up to date?
- Gradle Plugin up to date?
- Kotlin version up to date?
- only use kapt for annotation processing (don't mix Android Studio's
annotationProcessor,aptandkapt, or any other processor) - use
kapt3by usingapply plugin: 'kotlin-kapt' - don’t use
kapt { generateStubs true } }at all, it will not work withkapt3 - using databinding? then databinding compiler version needs to be the same as gradle plugin version (
kapt "com.android.databinding:compiler:$version")
Additionally, I stick to org.jetbrains.kotlin:kotlin-stdlib and don’t use the jre7 version