I am trying to configure with Gradle a project which contains some external libraries. With Gradle I can setup different Environmental Configuration (with a class inside a c
It's a @bifmadei answer from google code issue and it helps for me:
Try setting this in the dependency project
android {
publishNonDefault true
...
}
and this in the project that uses it
dependencies {
releaseCompile project(path: ':theotherproject', configuration: 'release')
debugCompile project(path: ':theotherproject', configuration: 'debug')
}
Taken from here: https://code.google.com/p/android/issues/detail?id=66805