Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Gradle:如何获取默认资源输出目录?
println sourceSets.main.resources.outputDir
错误:
Needs to set a non-null value before it can be retrieved
尝试这个 :
println sourceSets.main.output.resourcesDir
资源
对于 kotlin DSL:
sourceSets.main.get().output.resourcesDir