Can not remove generated DataBinding code
In this order:
1.- Remove your file generated (build folder)
2.- Clean your project
3.- Invalidate cache and restart Android Studio
4.- Restart computer
I had the same issue, and it was caused by having <layout>
root tags in the XML. I did not realise that these tags were databinding related and the compiler also does not help you in this regard.