|
@@ -29,6 +29,9 @@ android {
|
|
|
compileSdk 35
|
|
|
|
|
|
compileOptions {
|
|
|
+ // 启用核心库脱糖(Core Library Desugaring)
|
|
|
+ coreLibraryDesugaringEnabled true
|
|
|
+
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
|
}
|
|
@@ -123,6 +126,8 @@ dependencies {
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.0"
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.0"
|
|
|
|
|
|
+ coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
|
|
|
+
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|