From f25a7bcd426e4a527d6c6740c4fd0de217b8f582 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Mon, 27 Mar 2023 20:02:00 +0530 Subject: [PATCH] Enable core library desugaring. --- app/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index d275cece8..ca5fcff43 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,6 +46,7 @@ android { compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 + coreLibraryDesugaringEnabled true } kotlinOptions { jvmTarget = JavaVersion.VERSION_17.toString() @@ -77,6 +78,8 @@ afterEvaluate { } } dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.2' + //noinspection GradleDependency implementation('com.github.KotatsuApp:kotatsu-parsers:96b9ac36f3') { exclude group: 'org.json', module: 'json'