From ea1f44dfd1f0412986afb148eb3c101a612aa94a Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Thu, 27 Apr 2023 21:28:25 -0400 Subject: [PATCH] (misc) enable core desugar Signed-off-by: androidacy-user --- app/build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 12e70f4..c66c828 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -287,6 +287,7 @@ android { } compileOptions { + isCoreLibraryDesugaringEnabled = true sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } @@ -459,6 +460,9 @@ dependencies { // debugging debugImplementation("com.squareup.leakcanary:leakcanary-android:2.10") + + // desugaring + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.3") } android {