Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view Gradle source set paths?

I am currently working on an Android project, which, for various legacy reasons, uses a non-standard Gradle layout. I'm trying to add a class which will have different implementations in different build flavors, but it's not being picked up by the compiler. The project uses setRoot, so the paths are partially auto-generated, and I suspect they may be wrong.

So my question is, how do I view the source set paths that Gradle is actually using? This seems like it would be simple, but neither the built-in help nor several hours of Googling have yielded any answers.


1 Answers

Android plugin adds the task sourceSets that prints out all the source sets defined in the project.

You can run this from the command line:

gradle sourceSets

Or expand Tasks->Android->sourceSets in the Gradle panel of Android Studio

like image 127
RaGe Avatar answered Oct 26 '25 08:10

RaGe



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!