From 9f7cc3ac10b90be6932807275a0028193303bb0c Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 21 Jul 2020 09:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 1 + app/src/main/java/io/legado/app/App.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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