Using gradle to find dependency tree

后端 未结 14 1938
-上瘾入骨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:28

    In Android Studio

    1) Open terminal and ensure you are at project's root folder.

    2) Run ./gradlew app:dependencies (if not using gradle wrapper, try gradle app:dependencies)

    Note that running ./gradle dependencies will only give you dependency tree of project's root folder, so mentioning app in above manner, i.e. ./gradlew app:dependencies is important.

提交回复
热议问题