Android
Kotlin
AndroidStudio

e: [kapt] An exception occurred: java.lang.NullPointerException

はじめに

e: [kapt] An exception occurred: java.lang.NullPointerException

というエラーが出た.

修正

build.gradle
kapt 'com.android.databinding:compiler:3.1.4'

build.gradle
annotationProcessor 'com.android.databinding:compiler:3.1.4'

にしたら治った.

参考文献

https://stackoverflow.com/questions/50594507/cannot-find-symbol-databindingcomponent-on-android-studio-3-2-canary-16-kotlin-p