5

I need a way to analyze my project and shows dependencies which are not used. I know about dependency:analyzer. but it doesn't seem to be compatible with Android plugin.
Any hint ?

Maher Abuthraa
  • 17,493
  • 11
  • 81
  • 103

1 Answers1

-3

List gradle dependecies like this:

gradle module_name:dependencies

Or if you using gradle wrapper:

 ./gradlew module_name:dependencies

Replace 'module_name' to your project module.

You can also generate HTML raport: Add this plugin:

  apply plugin: 'project-report'

And run:

./gradlew htmlDependencyReport
oginski
  • 354
  • 5
  • 16
  • 4
    I don't need to list dependencies .. I need to monitor which one is not used. we have very big project and from time to time we analyze dependencies to be sure we are shipping un-used libraries .. – Maher Abuthraa Nov 03 '17 at 14:48