Skip to content

Commit d1c4d8e

Browse files
android: enable core library desugaring
1 parent 25a924e commit d1c4d8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

android/app/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ android {
1111
ndkVersion = flutter.ndkVersion
1212

1313
compileOptions {
14+
isCoreLibraryDesugaringEnabled = true
1415
sourceCompatibility = JavaVersion.VERSION_17
1516
targetCompatibility = JavaVersion.VERSION_17
1617
}
@@ -39,6 +40,10 @@ android {
3940
}
4041
}
4142

43+
dependencies {
44+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
45+
}
46+
4247
flutter {
4348
source = "../.."
4449
}

0 commit comments

Comments
 (0)