错误: 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中还引用到,引起的报错

最新文章

  1. EF使用CodeFirst方式生成数据库&amp;技巧经验
  2. springmvc原理
  3. imovie的快速入门
  4. atitit。 hb Hibernate sql 查询使用
  5. RAID 磁盘状态为foreign,怎么变成ready
  6. 发现一款移动web端远程调试工具weinre , 哈哈!
  7. 【HDOJ】3325 Arithmetically Challenged
  8. JS版本网站资源状态检测
  9. BZOJ 2007 海拔
  10. ThinkPHP批量添加数据和getField()示例
  11. Dubbo工程结构和Maven打包
  12. 51 nod 1097 拼成最小的数 思路:字符串排序
  13. 利用CVE-2017-11882拿到持久性shell
  14. Linux 基本概念和操作2
  15. 常用markdown语法入门
  16. EF 通过DataAnnotations配置属性和类型
  17. Java泛型学习二
  18. RHEL 7.6 安装 Oracle 18c RAC
  19. 《TCP/IP 详解 卷1:协议》第 5 章:Internet 协议
  20. Hive技术拾遗

热门文章

  1. WebAPI例子
  2. Win10 修改系统自带字体
  3. disabled属性的简介和使用
  4. 禅道服务崩溃 Can&#39;t init tc log
  5. SpringBoot容器化的多环境配置
  6. Software_programming_Config_HOCON
  7. 蓝牙mesh组网实践(节点功能介绍)
  8. mysql函数实现oracle的序列
  9. Ping命令的基本使用
  10. pve apt 更新