In my gradle file I have many dependencies e.g.:
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation "androidx.preference:preference:1.2.1"
As I have a huge project and during debugging I tested many methods and libraries I included many dependencies in gradle file. After deleting tons of code, now I don't know, which dependencies are still used in my project.
Is there a way to find usages of each dependency in gradle file?
When I right click on a dependency,and select Find Usages, it says Cannot search for usages from this location.
Simply navigate to
Code --> Analyze Code --> Dependencies
Then choose the scope as an example "Whole Project" and hit analyze button.
Done! Now you can see all dependencies which are used like following screenshot.
If this answer helped you please mark it as accepted answer.