[英]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. 我知道如何查看我的Android Studio项目中的所有依赖关系,但没有显示哪些库需要哪些依赖项。 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 ?
有没有办法查看我在build.gradle文件中声明的每个特定依赖项所需要的库?
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. 请注意,dependencies.txt文件将生成并存储在您当前的工作目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.