android cannot generate view binders android.databinding.tool.util.LoggedErrorException
错误: Cannot resolve type 'viewModel'
错误: cannot generate view binders android.databinding.tool.util.LoggedErrorException: failure, see logs for details.
Cannot resolve type 'viewModel'
at android.databinding.tool.util.L.printMessage(L.java:134)
at android.databinding.tool.util.L.e(L.java:107)
at android.databinding.tool.expr.Expr.getResolvedType(Expr.java:391)
at android.databinding.tool.expr.ExprModel.lambda$resolveTypes$1(ExprModel.java:626)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at android.databinding.tool.expr.ExprModel.resolveTypes(ExprModel.java:626)
at android.databinding.tool.expr.ExprModel.seal(ExprModel.java:418)
at android.databinding.tool.LayoutBinder.sealModel(LayoutBinder.java:245)
at android.databinding.tool.DataBinder.sealModels(DataBinder.java:88)
at android.databinding.tool.CompilerChef.sealModels(CompilerChef.java:371)
at android.databinding.annotationprocessor.ProcessExpressions.writeResourceBundle(ProcessExpressions.java:245)
这个很明显是databinding错误,也就是与xml有关,,,但错误日志里没有说明是具体哪个文件..
<variable
name="viewModel" type="xxx.xxx.yourViewModel"/>
在很多xml中用到,所以难查找(...这里建议大家不要xml中有相同的命名,不难很难找到)
后面想起是一个 xxxViewModel 被删除了,但xml中还引用到,引起的报错
最新文章
- EF使用CodeFirst方式生成数据库&;技巧经验
- springmvc原理
- imovie的快速入门
- atitit。 hb Hibernate sql 查询使用
- RAID 磁盘状态为foreign,怎么变成ready
- 发现一款移动web端远程调试工具weinre , 哈哈!
- 【HDOJ】3325 Arithmetically Challenged
- JS版本网站资源状态检测
- BZOJ 2007 海拔
- ThinkPHP批量添加数据和getField()示例
- Dubbo工程结构和Maven打包
- 51 nod 1097 拼成最小的数 思路:字符串排序
- 利用CVE-2017-11882拿到持久性shell
- Linux 基本概念和操作2
- 常用markdown语法入门
- EF 通过DataAnnotations配置属性和类型
- Java泛型学习二
- RHEL 7.6 安装 Oracle 18c RAC
- 《TCP/IP 详解 卷1:协议》第 5 章:Internet 协议
- Hive技术拾遗