From 2a3e6a642b5e61d73edc602ce578d0a54537b72d Mon Sep 17 00:00:00 2001 From: "dmit.b" Date: Thu, 25 Jun 2026 13:26:18 +0300 Subject: [PATCH] Enable core library desugaring for flutter_local_notifications Add desugaring dependency and enable isCoreLibraryDesugaringEnabled to resolve flutter_local_notifications build requirement. --- android/app/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 26b92b4..62fddff 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -13,6 +13,7 @@ android { compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 + isCoreLibraryDesugaringEnabled = true } kotlinOptions { @@ -30,6 +31,10 @@ android { versionName = flutter.versionName } + dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4") + } + buildTypes { release { // TODO: Add your own signing config for the release build.