android studio 3.2 自定义打包apk名称
AS 3.2 自定义名称打包
android{ //自定义打包时apk名称 applicationVariants.all { variant -> variant.outputs.all { output ->// each 改为 all def fileName = "app_${variant.versionName}.apk" def outFile = output.outputFile if (outFile != null && outFile.name.endsWith('.apk')) { outputFileName = fileName // output.outputFile 改为 outputFileName } } } }