- 更多分享:www.catbro.cn
libraryVariants.all { variant ->
if (variant.buildType.name == "debug") {
variant.getPackageLibrary().destinationDir = new File(project.rootDir.absolutePath + "/xxx")
}
if (variant.buildType.name == ‘debug‘) {
variant.outputs.all { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith(‘debug.aar‘)) {
outputFileName = "${project.name}-${variant.flavorName}-${variant.buildType.name}.aar"
}
}
}
}