What does Gradle transitive = true
do exactly? It is not clear from the Gradle documentation. This is in the context of compile
within build.gradle
. In my case I'm depending Android's crashlytics.
compile('com.crashlytics.sdk.android:crashlytics:2.2.2@aar') {
transitive = true;
}
Several Gradle docs (here and here) imply that "transitive" defaults to true. Yet removing transitive = true
results in transitive dependencies not being brought in (in particular KitGroup
).
class file for io.fabric.sdk.android.KitGroup not found
The docs say it defaults to true, yet the actual behavior seems to be the opposite.
I am running Gradle 2.2.1. Perhaps the behavior changed between 2.2 and 2.4?
Edit: Related Transitive dependencies not resolved for aar library using gradle
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…