//输出apk名称
android.applicationVariants.all { variant ->
variant.outputs.all {
//com.android.app-debug-1.0.apk
outputFileName = "${variant.applicationId}-${variant.name}-${variant.versionName}.apk"
//debug-1.0.apk
outputFileName = "${variant.name}-${variant.versionName}.apk"
//app1.0.apk
outputFileName = "app${variant.versionName}.apk"
}
}