ClassNotFoundException: Didn't find class “android.databinding.DataBinderMapper”

后端 未结 9 1818
长发绾君心
长发绾君心 2020-12-11 14:23

I am using android\'s data binding library for views in a library project

i have added the following line in my root gradle file

classpath \'         


        
9条回答
  •  情歌与酒
    2020-12-11 15:04

    Best guess. Get rid of android-apt

    And if there are libraries using apt

    Instead of apt 'lt.mdm.sdd:myLib:1.5.1' use annotationProcessor 'lt.mdm.sdd:myLib:1.5.1'.

    I'm not sure if this will help you, and i have no idea if library it self should be changed.

    It helped me (i was using androidannotations.org older version with apt) at least.

    Update

    And i have no idea why you apply plugin: 'com.android.databinding'? It works without it as well.

提交回复
热议问题