阅读更多

 AS 3.2 自定义名称打包

 

 

android{//自定义打包时apk名称    applicationVariants.all { variant ->        variant.outputs.all { output ->// each 改为 all            def fileName = "app_${variant.versionName}.apk"            def outFile = output.outputFile            if (outFile != null && outFile.name.endsWith('.apk')) {                outputFileName = fileName  //  output.outputFile 改为 outputFileName            }        }    }}

 

更多相关文章

  1. NPM 和webpack 的基础使用
  2. android:报Activity has leaked IntentReceiver或者receiver is
  3. android adb常用命令整理
  4. Android(安卓)中RxPermissions 的使用
  5. This android SDk requires Android(安卓)developer......
  6. Android(安卓)源码下载
  7. Android(安卓)Studio: 模拟器启动失败解决(Emulator: Process fin
  8. Android(安卓)如何去除Launcher上默认的google search bar?
  9. Android批量打包提速 - 1分钟900个市场不是梦

随机推荐

  1. Android(安卓): Resource is not a Drawa
  2. android获取sd卡路径方法:
  3. 如何解决Errors occurred during the bui
  4. android 发送短信
  5. Android图片旋转实例
  6. Android中的android:layout_weight讲解
  7. Android(安卓)ScrollView 去掉 scrollbar
  8. Android(安卓)API等级、Android版本、发
  9. PULL解析XML
  10. Android(安卓)应用Crash 后自动重启