DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.
It will be removed in version 7.0 of the Android Gradle plugin.
 

buildFeatures{
dataBinding = true
// for view binding :
// viewBinding = true
}