Skip to content

Commit

Permalink
[修复] Android 7 无法正常打开 App 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YenalyLiew committed May 18, 2024
1 parent 9f4a93d commit 2459580
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ android {
buildConfig = true
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Expand Down Expand Up @@ -148,6 +149,8 @@ dependencies {

ksp(libs.room.compiler)

coreLibraryDesugaring(libs.desugar.jdk.libs)

testImplementation(libs.junit)

androidTestImplementation(libs.test.junit)
Expand Down
12 changes: 7 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ appCompat = "1.6.1"
material = "1.12.0"
coroutinesAndroid = "1.8.0"
activity = "1.9.0"
fragment = "1.7.0"
fragment = "1.7.1"
constraintLayout = "2.1.4"
recyclerView = "1.3.2"
expandableTextView = "v1.6.1-x"
Expand All @@ -27,9 +27,9 @@ refreshLayoutKernel = "2.0.5"
refreshHeaderMaterial = "2.0.5"
refreshFooterClassics = "2.0.5"
multiType = "4.3.0"
lifecycleViewModelKtx = "2.7.0"
lifecycleRuntimeKtx = "2.7.0"
lifecycleLiveDataKtx = "2.7.0"
lifecycleViewModelKtx = "2.8.0"
lifecycleRuntimeKtx = "2.8.0"
lifecycleLiveDataKtx = "2.8.0"
roomRuntime = "2.6.1"
roomKtx = "2.6.1"
roomCompiler = "2.6.1"
Expand Down Expand Up @@ -64,7 +64,8 @@ testEspressoCore = "3.5.1"
guava = "33.2.0-android"
exoplayer = "1.3.1"
leakCanary = "2.14"
circularRevealSwitch = "0.4.5"
circularRevealSwitch = "0.4.6"
desugarJdkLibs = "2.0.4"

[libraries]
# Android
Expand Down Expand Up @@ -139,6 +140,7 @@ xpopup-ext = { group = "com.github.li-xiaojun", name = "XPopupExt", version.ref
permission-x = { group = "com.guolindev.permissionx", name = "permissionx", version.ref = "permissionX" }
circular-reveal-switch = { group = "com.github.YenalyLiew", name = "CircularRevealSwitch", version.ref = "circularRevealSwitch" }
leak-canary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version.ref = "leakCanary" } # debugImplementation
desugar-jdk-libs = { group = "com.android.tools", name = "desugar_jdk_libs", version.ref = "desugarJdkLibs" } # coreLibraryDesugaring

[bundles]

Expand Down

0 comments on commit 2459580

Please sign in to comment.