Data Binding Android - Type parameter T has incompatible upper bounds : ViewDataBinding and MainActivity

后端 未结 16 1539
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 00:27

I am using Android Studio 2.0 Preview 4. I\'m using Android SDK tools 25 rc1. This error persists no matter how many times I clean / rebuild project. File->Invalidate Caches

16条回答
  •  [愿得一人]
    2020-12-11 00:47

    The refresh is of no use if it continues to give errors. When there are these errors it is likely that in your xml file there is a problem that the compiler did not show you when creating the layout. In fact, it may happen that this error is visible only in its "debug" folder. If an error of this type should occur, just follow the error in the debug folder and correct it from the original file. In my case the error was two duplicates of

     

    xmlns: app = "http://schemas.android.com/apk/res-auto"

    that I couldn't see

提交回复
热议问题