I am trying to customize the build process using below code
android.applicationVariants.all { variant ->
def appName = "MyApplication.apk"
variant.outputs.each { output ->
output.outputFile = new File(output.outputFile.parent, appName)
}
}
But from android studio 3.0 it doesn’t work, I get below the error
Error: (81, 0) getMainOutputFile is no longer supported. Use getOutputFileName if you need to specify a file name for output.
source
share