Home » Android » Android Studio 2.2 preview throwing error while implementing databinding

Android Studio 2.2 preview throwing error while implementing databinding

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have updated my android studio to 2.2 preview 1 and applied the specified dependencies for google and firebase as specified but still getting the following error

EmptyThrowable: Wrong dependency type: class com.android.tools.idea.databinding.DataBindingUtil$LightBRField


dataBinding {
    enabled true
}
How to&Answers:

You can update the Google repository in the Android Software Development Kit (SDK). The fastest way to do it to click:

Help> Check for updates

Answer:

Just use latest Android Studio 3.1.3 or new if available. You will not get this error.