DataBindingUtil.setContentView - Type parameter T has incompatible upper bounds

前端 未结 9 759
逝去的感伤
逝去的感伤 2021-02-02 06:54

\"Android Studio\" shows error message \"Type parameter T has incompatible upper bounds: ViewDataBinding and ActivityChecklistsBinding.

ActivityChecklistsBindin         


        
9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 07:17

    Go to layout "main_activity.xml"
    Click right -> Refactor -> Rename
    Rename the layout to "main_activity_new.xml" or anything you want
    Again rename it to normal "main_activity.xml"
    

    It fixed for me!

提交回复
热议问题