添加后
compile "android.arch.persistence.room:runtime:1.0.0-rc1"
我所有的数据绑定(bind)类都被破坏了。有什么线索吗?
最佳答案
事实证明,javac 将打印最多 100 个编译错误,在处理预处理器时,您通常需要最后一条错误消息,而不是第一条。将其放入您的顶级 build.gradle 文件中并变得快乐:
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "4000"
options.compilerArgs << "-Xmaxwarns" << "4000"
}
}
}
感谢:https://movieos.org/2017/android-room-data-binding-compile-time-errors/
关于android - 添加 Room 后数据绑定(bind)似乎被破坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46850286/