简体   繁体   English

如何查看库的所有依赖关系?

[英]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.

相关问题 如何获取库的所有依赖项? - how to get all dependencies of a library? 依赖关系,模块问题。 如何正确引用该库? - Issues with dependencies, modules. How do I properly reference this library? 如何在我的android库中包含依赖项 - How do I include dependencies in my android library 如何发送具有远程依赖项(gradle)的Android库(aar)? - How do I ship an Android Library (aar) with remote dependencies (gradle)? 如何在Android库代码中抽象出依赖项? - How do I abstract away dependencies in Android library code? 如何添加这些依赖项? - How do I add these dependencies? 如何使用eclipse adt向android依赖项添加新库? - How do I add a new library to android dependencies using eclipse adt? 如何在gradle和Android Studio中包含库的子依赖项? - How do I include sub-dependencies of a library with gradle and Android Studio? 如何在库中包含ActionBarSherlock,以使其反映在所有系统中? - How do I include ActionBarSherlock in the library so that it is reflected in all the systems? Android Studio:“依赖关系”如何工作? 如何更新图书馆? - Android Studio : how do 'dependencies' work ? How to update a library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM