- Gradle 版本 3.4.1
- Gradle 包装器 gradle-5.1.1-all.zip
- Android Studio 3.4.1
将此部分添加到我的 app.gradle
后:
dataBinding {
enabled = true
}
我的项目在构建时出错。错误是:
Could not find databinding-compiler.jar (androidx.databinding:databinding-compiler:3.4.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler/3.4.1/databinding-compiler-3.4.1.jar
最佳答案
前往
工具 -> SDK 管理器 -> SDK 工具 -> 然后检查支持存储库并点击 <强>好的
The Support repository will be downloaded. Then try syncing the project.
关于android - 错误 :- Could not find databinding-compiler. jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56291030/