http://www.2cto.com/kf/201601/487405.html
在build.gradle檔打開
android block 中,新增
android.applicationVariants.all { variant -> variant.outputs.each { output -> output.outputFile = new File(output.outputFile.parent, "名稱_" + defaultConfig.versionCode + "_v" + defaultConfig.versionName + "_" + buildType.name + ".apk"); } }