打包apk生成对应路径文件

2023-09-23 31 0

 打包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"}}
}

代码编程
赞赏

相关文章

pku1325 Machine Schedule
pku1915 Knight Moves
POJ的另一种登录方法http://162.105.81.212
pku1323 Game Prediction
pku1326 – Mileage Bank
zju1358 Moving Object Recognition