java.lang.NoClassDefFoundError: android.databinding.DataBinderMapperImpl when running Espresso tests

前端 未结 5 1301
刺人心
刺人心 2021-01-04 13:04

Data binding setup:

apply plugin: \'kotlin-kapt\'

android {
    dataBinding {
        enabled = true
    }
}

dependencies {
    kapt \"com.android.databind         


        
5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 13:18

    Add

    kaptTest "androidx.databinding:databinding-compiler:+"
    

    to dependencies on build.gradle files of all your modules.

提交回复
热议问题