Reputation:
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.
Upvotes: 4
Views: 6305
Reputation: 23637
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
Upvotes: 7