Android Studio 2.2 preview throwing error while im

2019-04-05 07:10发布

问题:

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
}

回答1:

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



回答2:

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