Answers for "WARNING: DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'. It will be removed in version 5.0 of the Android Gradle plugin."

1

DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.

android {

    buildFeatures{
         dataBinding = true
         // for view binding :
         // viewBinding = true
    }
}
Posted by: Guest on June-28-2020
0

DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'.

// shorter version
// android.buildFeatures.dataBinding true


// longer version

android {

    buildFeatures {

         dataBinding true

         // for view binding:
         // viewBinding true
    }
}
Posted by: Guest on August-01-2020

Code answers related to "WARNING: DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'. It will be removed in version 5.0 of the Android Gradle plugin."

Browse Popular Code Answers by Language