我正在使用this库并已启用dataBinding
并正在使用kapt-android
插件。构建项目时出现以下错误:
e: [kapt] An exception occurred: android.databinding.tool.util.LoggedErrorException:
Found data binding errors.
app level build.gradle:
apply plugin: 'com.android.application'
//For green dao
apply plugin: 'org.greenrobot.greendao'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android'
android {
dataBinding {
enabled = true
}
sourceSets {
main.java.srcDirs += 'build/generated/source/greendao'
}
...
}
dependencies {
implementation 'com.github.skedgo:DateTimeRangePicker:v1.3'
implementation 'org.greenrobot:greendao:3.2.2'
...
}
greendao {
targetGenDir 'src/main/java'
}
}
...
apply plugin: 'kotlin-android-extensions'
可能的原因是什么?