From 1d93eb10f386ab950e01222fd47fe8fa7ea02984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bot=20of=20Thomas=20G=C3=BCttler?= Date: Thu, 14 May 2026 08:39:42 +0200 Subject: [PATCH] fix: enable core library desugaring for flutter_local_notifications (#37) --- android/app/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index d42e9b3..b1f2227 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 { @@ -65,6 +66,8 @@ flutter { } dependencies { + // Required for flutter_local_notifications and other plugins that need Java 8+ APIs on API < 26. + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") // integration_test is a dev dependency; the Flutter plugin loader adds it as // debugImplementation only, but GeneratedPluginRegistrant.java (in src/main) // references its class in all variants. Make it available for release compilation