Android Data Binding: missing DataBinderMapper class

后端 未结 5 1047
忘掉有多难
忘掉有多难 2020-12-11 07:49
java.lang.NoClassDefFoundError: android.databinding.DataBinderMapper
        at android.databinding.DataBindingUtil.(DataBindingUtil.java:31)
        a         


        
5条回答
  •  佛祖请我去吃肉
    2020-12-11 07:53

    I was facing same error. What I have done is that I updated the dependency for databinding in app.gradle file

    kapt 'com.android.databinding:compiler:3.1.0-alpha05'
    

    to

    kapt 'com.android.databinding:compiler:3.2.0-alpha04'
    

    after updating the databinder compiler, I started getting this error. To get rid from this problem I have to revert the databinding compiler to old version and it taken me away from this problem. Now I am waiting for stable databinding compiler version and will upgrade to that version till then I will go with old compiler version.

提交回复
热议问题