DataBindingUtil.setContentView-类型参数T具有不兼容的上限 [英] DataBindingUtil.setContentView - Type parameter T has incompatible upper bounds
本文介绍了DataBindingUtil.setContentView-类型参数T具有不兼容的上限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
"Android Studio"显示错误消息类型参数T具有不兼容的上限:ViewDataBinding和ActivityChecklistsBinding.
"Android Studio" shows error message "Type parameter T has incompatible upper bounds: ViewDataBinding and ActivityChecklistsBinding.
ActivityChecklistsBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_checklists);
在更新ADK之前,它可以正常工作.有什么想法有什么问题吗?
Before update the ADK it works fine. Is there any ideas what wrong?
推荐答案
我遇到了同样的问题.我尝试了几项清理并重建项目".
I had the same problem. I tried a couple of things, Clean and Rebuild project.
但是,在我选择 File->后,它可以正常工作使缓存无效/重新启动
这篇关于DataBindingUtil.setContentView-类型参数T具有不兼容的上限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文