背景

使用Room时,出现报错:
Class is referenced as a converter but it does not have any converter methods. - androidx.databinding.adapters.Converters

解决方案

在网上查了很多资料,都没有找到和我这边匹配的。后来根据报错信息“androidx.databinding.adapters.Converters”,搜索了一下“Converters”,结果有了意外的发现。
我的AppDatabase类是从另外一个项目中copy过来修改的,里面有@TypeConverters(Converters::class)
那个项目用到了类型转化,但是我当前还没有,删除即可。
Class is referenced as a converter but it does not have any converter methods. - androidx.databindin

安卓开发技术分享: https://blog.csdn.net/yinxing2008/article/details/84555061
更多技术总结好文,请关注:「程序园中猿」
Class is referenced as a converter but it does not have any converter methods. - androidx.databindin

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2021-08-05
  • 2021-09-01
  • 2021-10-15
  • 2021-07-18
  • 2021-12-17
  • 2021-08-06
猜你喜欢
  • 2021-12-24
  • 2021-05-11
  • 2022-12-23
  • 2021-04-15
  • 2021-04-29
  • 2022-12-23
  • 2021-08-10
相关资源
相似解决方案