07-20-2023, 03:54 PM
Kotlin plugin doesn't pick up annotationProcessor dependencies, So use the latest version of Kotlin annotation processor - put this line at **top of your module's level** `build.gradle` file
`apply plugin: 'kotlin-kapt'`
like
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt' // add this line
android {
compileSdkVersion 28
defaultConfig {
........
}
}
Don't forget to change the compileSdkVersion accordingly.
`apply plugin: 'kotlin-kapt'`
like
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt' // add this line
android {
compileSdkVersion 28
defaultConfig {
........
}
}
Don't forget to change the compileSdkVersion accordingly.