diff --git a/app/build.gradle b/app/build.gradle index cb11eee2f..01ca59663 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -115,6 +115,7 @@ dependencies { testImplementation 'junit:junit:4.13' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + implementation "com.android.support:multidex:1.0.3" //kotlin implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index bdf59ed54..eba95b8e9 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -1,6 +1,5 @@ package io.legado.app -import android.app.Application import android.app.NotificationChannel import android.app.NotificationManager import android.content.Context @@ -9,6 +8,7 @@ import android.graphics.Color import android.os.Build import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatDelegate +import androidx.multidex.MultiDexApplication import com.jeremyliao.liveeventbus.LiveEventBus import io.legado.app.constant.AppConst.channelIdDownload import io.legado.app.constant.AppConst.channelIdReadAloud @@ -28,7 +28,7 @@ import io.legado.app.utils.postEvent import io.legado.app.utils.putPrefInt @Suppress("DEPRECATION") -class App : Application() { +class App : MultiDexApplication() { companion object { @JvmStatic