Android DataBinding 采坑记录

NoClassDefFoundError: Failed resolution of: Landroidx/databinding/DataBinderMapperImpl

app module 和 相关的 子 module 均需配置

android {

    dataBinding {
        enabled = true
    }
}

Cause: couldn’t make a guess for xxx

Cause: couldn't make a guess for cc.androidx.app_widget.adapter.BaseRecyclerViewAdapter.entity.Person

错误分析: 问题出在type引用对象的包名包含了大写
解决方法: 包路径都为小写

<data>
    <variable
        name="person"
        type="cc.androidx.app_widget.adapter.brva.entity.Person"/>

    <variable
        name="presenter"
        type="cc.androidx.app_widget.adapter.brva.entity.PersonPresenter"/>
</data>
上一篇 Android Butterknife 采坑记录
下一篇 ARouter 接入踩坑记录
目录
文章列表
1 Android Butterknife 采坑记录
Android Butterknife 采坑记录
2
H5使用vConsole移动调试工具
H5使用vConsole移动调试工具
3
CentOS 7 下修改 MySQL 数据库存放位置
CentOS 7 下修改 MySQL 数据库存放位置
4
Vagrant启动CentOS
Vagrant启动CentOS
5
Magento模式设置
Magento模式设置
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。