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 ?
Asked
Active
Viewed 4,353 times
5

Maher Abuthraa
- 17,493
- 11
- 81
- 103
-
1[This thead](https://stackoverflow.com/a/37583197/4168607) may help – ADM Nov 03 '17 at 14:29
-
@ADM I will take a look .. – Maher Abuthraa Nov 03 '17 at 14:48
1 Answers
-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
-
4I 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