I have migrated my code to AndroidX. Things are working fine except databinding.
I am getting the following error
Databinding errors after migrating to AndroidX
"Error:Cannot resolve the package androidx.databinding"
As of now, I have added the following lines in the Gradle build
dataBinding {
enabled = true}
And in gradle.properties,
android.useAndroidX=true
android.enableJetifier=true
I have gone through a lot of links for the same. But didn't help.
Androidx and databinding AndroidX incompatible with DataBinding Android and so on.
Is there any solution for this?