This morning I made an update to android studio from 3.0.1 to 3.1.0. After updating the gradle to latest version I still get build error regarding
android studio
gradle
In the gradle.properties add: android.databinding.enableV2=true
android.databinding.enableV2=true
In build.gradle(module:app) file add: dataBinding {enabled = true}
dataBinding {enabled = true}
Clean project and rebuid it.
It will start working...