gradle制定apk输出路径
2017-08-28 本文已影响132人
非爱狂风
def outputPathName = "/Users/user/Downloads/test.apk"
applicationVariants.all { variant ->
variant.outputs.each { output ->
//开始输出
output.outputFile = new File(outputPathName)
}
}