Using gradle to find dependency tree

后端 未结 14 1742
-上瘾入骨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条回答
  •  -上瘾入骨i
    2020-11-22 03:30

    For Android, type this in terminal

    gradlew app:dependencies
    

    It will list all the dependencies and the ones with newer versions for you to upgrade like

    com.android.support:customtabs:26.1.0 -> 27.1.1 (*)
    

提交回复
热议问题