我希望从gradle重命名我的apk.我在构建中有以下几行
applicationVariants.all { variant ->
def file = variant.outputFile
def filename = file.name.replace("SomeXXX", "SomeYYY")
variant.outputFile = new File(file.parent, filename)
}
Run Code Online (Sandbox Code Playgroud)
这成功地重命名了apks而不是未对齐的apks.请有人对此有所了解.