查看完整gradle依赖关系

https://stackoverflow.com/questions/21645071/using-gradle-to-find-dependency-tree

ForAndroid,usethisline

gradleapp:dependencies

orifyouhaveagradlewrapper:

./gradlewapp:dependencies

whereappisyourprojectmodule.

Additionally,ifyouwanttocheckifsomethingiscompilevs.testCompilevsandroidTestCompiledependencyaswellaswhatispullingitin:

./gradlew:app:dependencyInsight--configurationcompile--dependency<name>

./gradlew:app:dependencyInsight--configurationtestCompile--dependency<name>

./gradlew:app:dependencyInsight--configurationandroidTestCompile--dependency<name>