build.gradle(app model)
-----------------------------------------------------------------------------------------------------------------------------------------------
applicationVariants.all { variant ->
if (variant.buildType.name.contains('release')) {
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def fileName = "frame_v" + defaultConfig.versionName + "_release.apk"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
}
-----------------------------------------------------------------------------------------------------------------------------------------------
网友评论