gradle

/*android.applicationVariants.all { variant ->
        variant.outputs.each { output ->
            output.outputFile = new File(output.outputFile.parent,  defaultConfig.versionName + "-" + defaultConfig.versionCode + ".apk");
        }
    }*/
    applicationVariants.all { variant ->
        variant.outputs.all {
            outputFileName = defaultConfig.versionName + "-" + defaultConfig.versionCode + ".apk";
        }
    }

你可能感兴趣的:(gradle)