Search code examples
androidkotlinandroid-databindingkapt

Do we still need to include `kapt com.android.databinding:compiler`


I remember Kotlin mentioning in their docs that we need to include kapt com.android.databinding:compiler:version in our build.gradle. However I can no longer see this mentioned anywhere, except in some medium articles or stack overflow questions. So do we still need to include that if we're using the latest android gradle plugin?


Solution

  • As of current documentation, you do not need to specify kapt (Kotlin annotation processor) compiler dependenciy, because the kapt plugin for Gradle/Maven build takes care of it.