File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ android {
9494 }
9595
9696 compileOptions {
97+ // Flag to enable support for the new language APIs
98+ coreLibraryDesugaringEnabled true
9799 sourceCompatibility JavaVersion . VERSION_17
98100 targetCompatibility JavaVersion . VERSION_17
99101 }
@@ -154,6 +156,7 @@ dependencies {
154156
155157 ksp libs. room. compiler
156158 ksp libs. androidX. annotation
159+ coreLibraryDesugaring libs. android. desugaring
157160
158161 // For tests
159162 testImplementation libs. junit// tests the app logic
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ androidXTestRunner = "1.6.2"
3535androidXTestExt = " 1.2.1"
3636androidXArchCoreTest = " 2.2.0"
3737androidXMultidex = " 2.0.1"
38+ androidDesugaring = " 2.1.5"
3839autoService = " 1.1.1"
3940kotlinxCoroutines = " 1.7.3"
4041kotlinStdlibJdk8 = " 1.9.20"
@@ -99,6 +100,7 @@ androidX-vectordrawable-animated = { module = "androidx.vectordrawable:vectordra
99100androidX-biometric = { module = " androidx.biometric:biometric" , version.ref = " androidXBiometric" }
100101androidX-lifecycle-viewmodel-ktx = { module = " androidx.lifecycle:lifecycle-viewmodel-ktx" , version.ref = " androidXLifecycle" }
101102androidX-lifecycle-livedata-ktx = { module = " androidx.lifecycle:lifecycle-livedata-ktx" , version.ref = " androidXLifecycle" }
103+ android-desugaring = { module = " com.android.tools:desugar_jdk_libs" , version.ref = " androidDesugaring" }
102104
103105androidX-test-core = { module = " androidx.test:core" , version.ref = " androidXTest" }
104106androidX-test-runner = { module = " androidx.test:runner" , version.ref = " androidXTestRunner" }
You can’t perform that action at this time.
0 commit comments