fix(android): enable core library desugaring for flutter_local_notifications

This commit is contained in:
vjrj 2026-07-10 21:30:22 +02:00
parent 48db8fa7c8
commit c74373324a

View file

@ -25,6 +25,8 @@ android {
ndkVersion = flutter.ndkVersion
compileOptions {
// Required by flutter_local_notifications (uses Java 8+ APIs on older SDKs).
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
@ -71,3 +73,8 @@ android {
flutter {
source = "../.."
}
dependencies {
// Backport of Java 8+ APIs, required by flutter_local_notifications.
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}