Databinding

The databinding library is bundled with the Android Gradle plugin. You do not need to declare a dependency on the library, but you must enable it.

To enable data binding, add the dataBinding element to your module's build.gradle file, as shown below:

android {
    ...
    dataBinding {
        enabled = true
    }
}

For more information about data binding, see the guide to the data binding library, and the Android Studio release notes