我目前正在尝试在我的项目中添加https://github.com/firebase/FirebaseUI-Android的本地克隆作为依赖项。我不想通过标准方式导入它,因为我想对 FirebaseUI 进行修改。目前我正在尝试这个:
设置.gradle:
include ':firebaseui'
project(':firebaseui').projectDir = new File(settingsDir, '../FirebaseUI')
我的模块的build.gradle:
dependencies {
compile project(":firebaseui")
}
但我得到:
Error:(42, 0) Could not read script 'C:\Users\Gonzalo\AndroidStudioProjects\MyProject\common\constants.gradle' as it does not exist.
在 FirebaseUI\build.gradle 中导入:
allprojects { project ->
// Get constants, this is where we store things
// like the list of submodules or the version
project.apply from: "$rootDir/common/constants.gradle"
...
是 FirebaseUI 的 build.gradle 还是我的问题?