From 870eac1b6a56efca25630aa76a8000109ab9d959 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 10 May 2021 00:21:59 +0900 Subject: [PATCH] Fix multiple apk build not triggered --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 4b000c17..f720044f 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -86,7 +86,7 @@ android { // Configures multiple APKs based on ABI. abi { // Enables building multiple APKs per ABI. - enable !project.hasProperty("noAbiSplits") && gradle.startParameter.taskNames.contains("Release") + enable !project.hasProperty("noAbiSplits") && !gradle.startParameter.taskNames.isEmpty() && gradle.startParameter.taskNames.get(0).contains('Release') // By default all ABIs are included, so use reset() and include to specify that we only // want APKs for x86 and x86_64.