Using gradle to find dependency tree

后端 未结 14 1713
-上瘾入骨i
-上瘾入骨i 2020-11-22 03:20

Is it possible to use gradle to produce a tree of what depends on what?

I have a project and would like to find out all the dependencies so I may be able to prune it

14条回答
  •  旧巷少年郎
    2020-11-22 03:44

    In Android Studio (at least since v2.3.3) you can run the command directly from the UI:

    Click on the Gradle tab and then double click on :yourmodule -> Tasks -> android -> androidDependencies

    The tree will be displayed in the Gradle Console tab

提交回复
热议问题