打包apk生成对应路径文件
android.applicationVariants.all { variant ->
variant.outputs.all {
def date = new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08"))
if (variant.buildType.name.equals('debug')) {
outputFileName = "项目名_${date}_${versionName}_${versionCode}_debug.apk"
}
if (variant.buildType.name.equals('release')) {
outputFileName = "项目名_${date}_${versionName}_${versionCode}.apk"
}
}
}