简体   繁体   中英

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM