From 871fdaee4ca43878eba8f3ced1c39e8d8f040d8e Mon Sep 17 00:00:00 2001 From: KAAAsS Date: Thu, 8 Feb 2024 17:45:46 +0800 Subject: [PATCH] fix: Enable desugaring to add missing NIO API in old device --- app/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 2a81ba5..a8cd7af 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,6 +31,7 @@ android { compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 + coreLibraryDesugaringEnabled true } configurations { @@ -55,6 +56,7 @@ dependencies { implementation 'androidx.recyclerview:recyclerview:1.3.0' implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" implementation 'commons-io:commons-io:2.11.0' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.0.4' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'