From e7bd254c642b71f0045ea155d57f4a39bade7cdd Mon Sep 17 00:00:00 2001 From: Nicolas Pomepuy Date: Tue, 6 Jun 2023 08:29:34 +0200 Subject: [PATCH] Add desugaring library --- application/app/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/app/build.gradle b/application/app/build.gradle index 11a1fed5c..8e59d9215 100644 --- a/application/app/build.gradle +++ b/application/app/build.gradle @@ -3,6 +3,7 @@ apply plugin: 'kotlin-android' android { compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -149,6 +150,7 @@ dependencies { testImplementation "androidx.arch.core:core-testing:$rootProject.ext.archVersion" androidTestImplementation "androidx.arch.core:core-testing:$rootProject.ext.archVersion" androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion" + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2' androidTestUtil "androidx.test:orchestrator:$rootProject.ext.orchestrator" testImplementation "androidx.test:core:$rootProject.ext.testCore" testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$rootProject.ext.kotlinx_version"