From 64568edc0104d4ad1269c88868bc5ad89e2eb44e Mon Sep 17 00:00:00 2001 From: Aamir Date: Sun, 11 Feb 2024 12:21:41 +0300 Subject: [PATCH] Android build issue fixed --- android/app/build.gradle | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e8fb92f1..a340b24c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -34,12 +34,23 @@ apply plugin: 'com.google.gms.google-services' //apply plugin: 'com.google.firebase.crashlytics' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + configurations.all { - resolutionStrategy { - force 'androidx.core:core-ktx:1.6.0' + c -> c.resolutionStrategy.eachDependency { + DependencyResolveDetails dependency -> + println dependency.requested.group + if (dependency.requested.group == 'org.bouncycastle') { + dependency.useTarget 'org.bouncycastle:bcprov-jdk15to18:1.68' + } } } +//configurations.all { +// resolutionStrategy { +// force 'androidx.core:core-ktx:1.6.0' +// } +//} + android { compileSdkVersion 34