gradle: fix Cannot set property outputFile on null object.
This commit is contained in:
parent
16e3c07cf1
commit
338fd9e7b3
|
@ -84,7 +84,9 @@ android {
|
|||
applicationVariants.all { variant ->
|
||||
if (variant.name.equals('release')) {
|
||||
variant.outputs.each { output ->
|
||||
output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
|
||||
if (output.zipAlign != null) {
|
||||
output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
|
||||
}
|
||||
output.packageApplication.outputFile = new File(output.outputFile.parent, output.packageApplication.outputFile.name
|
||||
.replace(".apk", "-${variant.versionName}.apk"))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue