From baa3d49d4ba208592d4eb4d05934758262f84336 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Wed, 18 Jun 2025 16:00:27 +0530 Subject: [PATCH] fix: add desugaring for flutter_local_notifications to work --- mobile/android/app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/android/app/build.gradle b/mobile/android/app/build.gradle index 8c3148fae8..4719aee87b 100644 --- a/mobile/android/app/build.gradle +++ b/mobile/android/app/build.gradle @@ -34,6 +34,7 @@ android { ndkVersion = flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } @@ -132,7 +133,7 @@ flutter { source = "../.." } -dependencies { +dependencies { implementation 'io.sentry:sentry-android:2.0.0' implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.21' implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0' @@ -142,4 +143,5 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") } \ No newline at end of file