From 19c8b022baf8f48a8b297adc823055329350bb06 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 20 Oct 2021 12:22:58 +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 --- .../main/java/io/legado/app/help/http/cronet/CronetHelper.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt b/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt index 693111bf7..7c1689306 100644 --- a/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt +++ b/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt @@ -1,6 +1,7 @@ package io.legado.app.help.http.cronet import com.google.android.gms.net.CronetProviderInstaller +import io.legado.app.constant.AppLog import io.legado.app.help.AppConfig import okhttp3.Headers import okhttp3.MediaType @@ -39,7 +40,8 @@ val cronetEngine: ExperimentalCronetEngine? by lazy { val engine = builder.build() Timber.d("Cronet Version:" + engine.versionString) return@lazy engine - } catch (e: Exception) { + } catch (e: UnsatisfiedLinkError) { + AppLog.put("初始化cronetEngine出错", e) Timber.e(e, "初始化cronetEngine出错") return@lazy null }