Type parameter T has incompatible upper bounds
来源:互联网 发布:windows updata更新 编辑:程序博客网 时间:2024/05/23 17:36
今天更新了一下Android Studio, 然后打开之前写的DataBinding的demo案例,突然发现在之前使用DataBindingUtils的代码出冒出一条赤裸裸的红线,吓得我赶紧运行一下, 但是 项目竟然神奇的编译通过了并且还运行成功了!!
但是一大条红线摆在那里还是非常的辣眼,因此在StackOverFlow网站上查阅了不少规避方法,最后感觉还是以下方法比较靠谱,直接上图:
如上图所示,点击File-Invalidate Caches / Restart.
然后在弹出框中点击Invalidate Caches & Restart,当Studio重启之后,此错误就已经消失啦
1 0
- Type parameter T has incompatible upper bounds
- Data Binding Android - Type parameter T has incompatible upper bounds : ViewDataBinding and MainActi
- Sending 'ViewController' to Parameter of Incompatible Type 'id<xxxDelegate>'
- Scala类型 11: Upper Bounds & Lower Bounds
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t
- 错误argument of type "char *" is incompatible with parameter of type "LPCWSTR"的解决方法
- 错误argument of type "char *" is incompatible with parameter of type "LPCWSTR"的解决方法
- 错误argument of type "char *" is incompatible with parameter of type "LPCWSTR"的解决方法
- 错误argument of type "char *" is incompatible with parameter of type "LPCWSTR"的解决方法
- 错误argument of type "char *" is incompatible with parameter of type "LPCWSTR"的解决方法
- 错误:argument of type "char *" is incompatible with parameter of type "LPCWSTR"
- scala类型系统:11) upper bounds & lower bounds
- scala类型系统:11) upper bounds & lower bounds
- Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 'CIColor *'
- [cocos2d]Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 解决办法
- Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 'CIColor *'错误
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- JAVA从菜鸟【入门】到新手【实习】一一学习方法新思考
- 2016年CCPC合肥站
- 419. Battleships in a Board
- MySql 中的临时表
- Failed to install dst.apk on device '99bad4e8': timeout
- Type parameter T has incompatible upper bounds
- 对给定链表进行插入排序。
- 贝叶斯决策论例子
- 九十月秋招经历篇--个人的小小总结
- java语言的跨平台性
- 关于bitmap的一些知识
- 原生js--事件类型
- gdb:加载共享库的符号表 solib-search-path
- 自动化测试从0到1