isJulian00
isJulian00

Reputation: 1024

How do I view all the dependencies of a library?

I know how to view all the dependencies in my Android Studio project but it doesn't show which libraries require which ones. They are just all grouped together. Is there a way to see which libraries are required by each specific dependencies I declare in my build.gradle file ?

Upvotes: 4

Views: 4868

Answers (1)

Sneh Pandya
Sneh Pandya

Reputation: 8483

Let's suppose you want to get dependencies graph of your app module. In your terminal/command line, run the below command:

./gradlew :app:dependencies

Moreover, if you want to store the dependency graph generated by above command, just do:

./gradlew :app:dependencies > dependencies.txt

Please note that the dependencies.txt file will be generated and stored in your current working directory.

Upvotes: 9

Related Questions