Java – how to view the gradle source set path?

I am currently working on an Android project. Due to various traditional reasons, the project uses a non-standard gradle layout. I am trying to add a class that will have different implementations under different construction styles, but the compiler does not handle it. The project uses setroot, so the paths are partially generated automatically. I suspect they may be wrong

So my question is, how do I see the source set path actually used by gradle? This seems simple, but the built-in help or Google's hours didn't produce any answers

resolvent:

The Android plug-in adds the task sourcesets, which outputs all the source sets defined in the project

You can run this command from the command line:

gradle sourceSets

Or expand tasks - > Android - > sourcesets in the gradle panel of Android studio

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>