diff --git a/build.gradle b/build.gradle index 87dc9e82c..d108223e5 100644 --- a/build.gradle +++ b/build.gradle @@ -37,6 +37,8 @@ def getVersionName = { -> android { compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -80,6 +82,8 @@ android { } dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10' + implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.preference:preference:1.1.1' implementation 'androidx.documentfile:documentfile:1.0.1'