fix(android): enable core library desugaring for flutter_local_notifications
This commit is contained in:
parent
d2b98af36d
commit
f951b05e0a
1 changed files with 7 additions and 0 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue