Apk打包输出路径

来源:互联网 发布:淘宝怎么关闭订单 编辑:程序博客网 时间:2024/04/29 03:23
//            //修改生成的apk名字//            applicationVariants.all { variant ->//                variant.outputs.each { output ->//                    def outputFile = output.outputFile//                    if (outputFile != null && outputFile.name.endsWith('.apk')) {//                        // 输出apk名称为Par_wandoujia_v1.1.0_2015-01-15.apk//                        def fileName = "X ROOMS_${variant.productFlavors[0].name}_v${defaultConfig.versionName}_debug.apk"//                        output.outputFile = new File(path.outputPathName + "/debug", fileName)//                    }//                }//            }
1 0