From 3caebb8613068f41c8cb71767912a3dc2f303679 Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Tue, 6 Apr 2021 19:54:18 -0300 Subject: [PATCH] Enable Java8 core library desugaring. --- app/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 58950dd78..4418313d3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -148,6 +148,7 @@ android { } compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JAVA_VERSION targetCompatibility JAVA_VERSION } @@ -319,6 +320,8 @@ android { dependencies { lintChecks project(':lintchecks') + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' + implementation ('androidx.appcompat:appcompat:1.2.0') { force = true }