My top level build.gradle:
buildscript { ext.kotlin_version = \'1.2.41\' ext.lifecycle_version = \"1.1.1\" repositories { google()
I manually typed the line "binding.setVariable(BR.item, item)" and it worked for me. Android studio shows the suggestion of importing BR. Choose the one from your project. Also enable databinding = true in gradle.