I am trying to test data binding as given in the guide here. I have included this in my build.gradle file (of module app) :
compileSdkVersion \'android-MNC\
In my case, the problem was that I was adding layout_height and layout_width to the layout tag and also to my root layout. I've just removed both attributes from the layout tag and solved the problem.
layout_height
layout_width
layout