I found the same duplicate question . But I have no dependency on maven. I have a dependency on a subproject.
I want to use one project dependency for only one flavor. This is my build.gradle
dependencies {
secureCompile project(':relatedProjects:gd')
}
android {
compileSdkVersion "Google Inc.:Google APIs:19"
buildToolsVersion "18.1.1"
productFlavors {
google {}
secure {
packageName "com.some_secure.package"
}
}
}
This is the console from the build team.
./gradlew clean assembleDebug
FAILURE: Build failed with an exception.
* Where:
Build file '/home/kulik/project/Notate/notateolearis/notateandroid/build.gradle' line: 27
* What went wrong:
A problem occurred evaluating project ':someproject'.
> Could not find method secureCompile() for arguments [project ':relatedProjects:gd'] on project ':someproject'.
* Try:
Run with
BUILD FAILED
Total time: 15.957 secs
source
share