android tutorial - Seeing dependency tree in Android | Developer android - android app development - android studio - android app developement
Seeing dependency tree
- Use the task dependencies. Depending on how your modules are set up, it may be either ./gradlew dependencies or to see the dependencies of module app use ./gradlew :app:dependencies
The example following build.gradle file
will produce the following graph:
- Here you can see the project is directly including com.android.support:design version 23.2.1, which itself is bringing com.android.support:support-v4 with version 23.2.1.
- However, com.google.android.gms:play-services itself has a dependency on the same support-v4 but with an older version 21.0.0, which is a conflict detected by gradle.
- (*) are used when gradle skips the subtree because those dependencies were already listed previously.