I want to set APK filePath in gradle that version is v4.1,but I can set its name and not set file path. What do I do?
applicationVariants.all {
variant->
variant.outputs.all {
output->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
outputFileName = "${defaultConfig.applicationId}_${variant.productFlavors[0].name}_${defaultConfig.versionName}_${releaseTime()}.apk"
}
}
}