From 28ce8d155346fe45dfe4b9a9ed632ffba91253d1 Mon Sep 17 00:00:00 2001 From: Tomas Maly Date: Tue, 16 Jun 2020 13:47:15 -0400 Subject: [PATCH] Update VERSIONS.gradle Fixing error causing: Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project --- VERSIONS.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSIONS.gradle b/VERSIONS.gradle index 61f08653..acbf9c29 100644 --- a/VERSIONS.gradle +++ b/VERSIONS.gradle @@ -21,9 +21,9 @@ def RESOURCE_PREFIX = "mauron85_bgloc_" ext { getApplicationId = { -> def applicationId = "com.marianhello.app" - if (findProject('..:app') != null) { + if (findProject('..:app') != null && project('..:app').hasProperty('android')) { applicationId = project('..:app').android.defaultConfig.applicationId - } else if (findProject(':app') != null) { + } else if (findProject(':app') != null && project(':app').hasProperty('android')) { applicationId = project(':app').android.defaultConfig.applicationId } if (rootProject.hasProperty('applicationId')) {