From e41caac7db87df49acacec60d0f36c118692bb63 Mon Sep 17 00:00:00 2001 From: fhuya Date: Mon, 27 Jan 2020 09:56:27 -0800 Subject: [PATCH 1/2] Address crash caused by missing dependency. --- platform/android/java/app/build.gradle | 2 ++ platform/android/java/app/config.gradle | 4 +++- platform/android/java/lib/build.gradle | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/android/java/app/build.gradle b/platform/android/java/app/build.gradle index 258ca9197a3..28f37406a5b 100644 --- a/platform/android/java/app/build.gradle +++ b/platform/android/java/app/build.gradle @@ -33,6 +33,8 @@ allprojects { } dependencies { + implementation libraries.supportCoreUtils + if (rootProject.findProject(":lib")) { implementation project(":lib") } else { diff --git a/platform/android/java/app/config.gradle b/platform/android/java/app/config.gradle index 862a954fac1..9a178d04543 100644 --- a/platform/android/java/app/config.gradle +++ b/platform/android/java/app/config.gradle @@ -4,11 +4,13 @@ ext.versions = [ minSdk : 18, targetSdk : 28, buildTools : '28.0.3', + supportCoreUtils : '28.0.0' ] ext.libraries = [ - androidGradlePlugin : "com.android.tools.build:gradle:$versions.androidGradlePlugin" + androidGradlePlugin : "com.android.tools.build:gradle:$versions.androidGradlePlugin", + supportCoreUtils : "com.android.support:support-core-utils:$versions.supportCoreUtils" ] ext.getExportPackageName = { -> diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle index 13a14422ed7..45e1e0e3bd6 100644 --- a/platform/android/java/lib/build.gradle +++ b/platform/android/java/lib/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' dependencies { - implementation "com.android.support:support-core-utils:28.0.0" + implementation libraries.supportCoreUtils } def pathToRootDir = "../../../../" From 9bd841b86d8eff019b892f26a8a555c8160a1c5a Mon Sep 17 00:00:00 2001 From: fhuya Date: Mon, 27 Jan 2020 10:45:25 -0800 Subject: [PATCH 2/2] Address crash caused by missing dependency. --- platform/android/java/app/build.gradle | 2 +- platform/android/java/app/config.gradle | 4 ++-- platform/android/java/lib/build.gradle | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/android/java/app/build.gradle b/platform/android/java/app/build.gradle index 28f37406a5b..2e4f2ffab0e 100644 --- a/platform/android/java/app/build.gradle +++ b/platform/android/java/app/build.gradle @@ -33,7 +33,7 @@ allprojects { } dependencies { - implementation libraries.supportCoreUtils + implementation libraries.supportCoreUtils if (rootProject.findProject(":lib")) { implementation project(":lib") diff --git a/platform/android/java/app/config.gradle b/platform/android/java/app/config.gradle index 9a178d04543..5550d3099db 100644 --- a/platform/android/java/app/config.gradle +++ b/platform/android/java/app/config.gradle @@ -4,13 +4,13 @@ ext.versions = [ minSdk : 18, targetSdk : 28, buildTools : '28.0.3', - supportCoreUtils : '28.0.0' + supportCoreUtils : '28.0.0' ] ext.libraries = [ androidGradlePlugin : "com.android.tools.build:gradle:$versions.androidGradlePlugin", - supportCoreUtils : "com.android.support:support-core-utils:$versions.supportCoreUtils" + supportCoreUtils : "com.android.support:support-core-utils:$versions.supportCoreUtils" ] ext.getExportPackageName = { -> diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle index 45e1e0e3bd6..eb97484b9c7 100644 --- a/platform/android/java/lib/build.gradle +++ b/platform/android/java/lib/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' dependencies { - implementation libraries.supportCoreUtils + implementation libraries.supportCoreUtils } def pathToRootDir = "../../../../"