diff --git a/library/build.gradle b/library/build.gradle index 26c87b5..8da3195 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -27,6 +27,7 @@ android { } } compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } @@ -43,6 +44,7 @@ dependencies { testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' } afterEvaluate {