Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get gradle dependency for class

I have a sample Project which has lots of dependencies (over 100).

The sample references a class which I need in my project.

How to find the gradle dependency which is providing this class?

like image 599
Rafael T Avatar asked Feb 17 '26 15:02

Rafael T


1 Answers

Control click on the class then assure that Autoscroll from source is selected. enter image description here That will bring you to something similar:

enter image description here

That will give you he name of the dependency in the build.gradle file.

The screenshots are from IntelliJ but the behaviour should be the same on Android Studio.

like image 105
Loïc Avatar answered Feb 20 '26 05:02

Loïc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!