记录安卓修改build后release app的名称
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.huaqin.factory"
minSdkVersion 27
targetSdkVersion 29
versionName "1.0.0"
versionCode 2
}
android.applicationVariants.all { variant ->
variant.outputs.all {
if (outputFileName.toString().contains("release"))
outputFileName = "测试工具_v${defaultConfig.versionName}.apk"
}
}
}