Error using databinding in android

后端 未结 12 880
情深已故
情深已故 2020-12-16 09:45

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\         


        
12条回答
  •  春和景丽
    2020-12-16 10:09

    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.

提交回复
热议问题