之前的
applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def fileName = "xxx${defaultConfig.versionName}_${releaseTime()}.apk"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
3.0
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "xxx${defaultConfig.versionName}_${releaseTime()}.apk"
}
}
Butterknife版本降到8.4
library不能使用shrinkResources属性