Issue with data binding with gradle 3.2.1

前端 未结 3 1688
醉酒成梦
醉酒成梦 2020-12-17 16:51

When i have updated android studios 3.2.0 to 3.2.1. I have use data binding, when run project show me error like this, if i am wrong please suggest me.

Could         


        
3条回答
  •  感动是毒
    2020-12-17 17:13

    The answer is pretty simple:

    just add these lines in gradle app

    //Data binding
    dataBinding.enabled = true
    

    and remove these two lines :

     apply plugin: 'kotlin-kapt'
     kapt "com.android.databinding:compiler:$gradle_version"
    

提交回复
热议问题