Android Studio fails to generate databinding after 3.1.0 update

Following the update to Android Studio 3.2, this line works for me. I have both Java and Kotlin code (compiler) running in my project.

Add the following to your


Data Binding V2

Data Binding V2 is now enabled by default and is compatible with V1. This means that, if you have library dependencies that you compiled with V1, you can use them with projects using Data Binding V2. However, note that projects using V1 cannot consume dependencies that were compiled with V2.

source (Release Note):

Just Commenting these lines out in file helped me solve my problem

#android.enableExperimentalFeatureDatabinding = true

if you’re using kotlin on android studio 3.2 ,
replace the distributionurl with this line


and you’ll be asked to change the build tools version to the apprpriate version.
once you’ve done that , remove this line from the app level build.gradle file

kapt '

and build the project. it worked for me.

Leave a Comment