From b35b4f19463b9d1dd1e27caccda9be0a8403c3a6 Mon Sep 17 00:00:00 2001 From: Randall Barker Date: Fri, 28 Sep 2018 11:03:21 -0700 Subject: [PATCH] Fix version code error --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6a3062ad7e..951eea47b3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -272,8 +272,8 @@ android.applicationVariants.all { variant -> } else if (variant.flavorName.contains("Arm")) { versionCode = versionCode + (1 * multiplier) } - variant.mergedFlavor.versionCode = versionCode - variant.outputs.all { output -> + + variant.outputs.each { output -> output.setVersionCodeOverride(versionCode) } }