How to track unused dependencies by Android Studio

Viewed 3296

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 ?

1 Answers

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
Related