【发布时间】:2016-06-16 14:22:45
【问题描述】:
我目前正在尝试在我的项目中添加 https://github.com/firebase/FirebaseUI-Android 的本地克隆作为依赖项。我不想通过标准方式导入它,因为我想对 FirebaseUI 进行修改。目前我正在尝试这个:
settings.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 还是我的问题?
【问题讨论】:
标签: android android-studio gradle firebaseui