diff --git a/app/build.gradle b/app/build.gradle index 7ba7112af..40bc89367 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -182,7 +182,9 @@ dependencies { //网络 implementation('com.squareup.okhttp3:okhttp:4.9.1') - compileOnly("com.google.android.gms:play-services-cronet:17.0.1"){ exclude(group: "org.chromium.net") } + compileOnly('com.google.android.gms:play-services-cronet:17.0.1'){ + exclude(group: "org.chromium.net") + } googleImplementation("com.google.android.gms:play-services-cronet:17.0.1") appImplementation(fileTree(dir: 'cronetlib', include: ['*.jar', '*.aar'])) diff --git a/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt b/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt index 2402c08bd..52926162f 100644 --- a/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt +++ b/app/src/main/java/io/legado/app/help/http/cronet/CronetLoader.kt @@ -24,7 +24,7 @@ object CronetLoader : CronetEngine.Builder.LibraryLoader() { //https://storage.googleapis.com/chromium-cronet/android/92.0.4515.127/Release/cronet/libs/arm64-v8a/libcronet.92.0.4515.159.so //https://cdn.jsdelivr.net/gh/ag2s20150909/cronet-repo@92.0.4515.127/cronet/92.0.4515.127/arm64-v8a/libcronet.92.0.4515.159.so.js private const val TAG = "CronetLoader" - private const val soVersion: String = "92.0.4515.159" + private const val soVersion = "92.0.4515.159" private const val soName = "libcronet.$soVersion.so" private val soUrl: String private val md5Url: String