Search code examples
androidandroid-databindingandroid-sdk-manager

Downloading Android Data Binding Library


enter image description here https://developer.android.com/topic/libraries/data-binding/index.html

I wonder how to download the library from the Support repository in the Android SDK manager. It seems that I only have to set dataBinding to true in build.gradle file in the app module. Using Android Studio 2.3


Solution

  • You can add data binding in your project by adding the below code in your app level build.gradle file.

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

    You don't have to do anything more for data binding. You can also check this blog.

    https://medium.com/@karmakar.avijit/android-data-binding-library-i-782d773de42c