gpt4 book ai didi

Android Crashlytics InterruptedIOException 超时

转载 作者:行者123 更新时间:2023-12-04 09:17:48 28 4
gpt4 key购买 nike

我将 Crashlytics 添加到项目 build.gradle 中:

classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
和应用程序 build.gradle:
dependencies {
implementation 'com.google.firebase:firebase-crashlytics:17.1.1'
implementation 'com.google.firebase:firebase-analytics-ktx:17.4.4'
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
现在我在启动我的应用程序后出现此错误:
E/FirebaseCrashlytics: Settings request failed.
java.io.InterruptedIOException: timeout
at okhttp3.internal.connection.RealCall.timeoutExit(RealCall.kt:384)
at okhttp3.internal.connection.RealCall.maybeReleaseConnection(RealCall.kt:346)
at okhttp3.internal.connection.RealCall.noMoreExchanges$okhttp(RealCall.kt:310)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:205)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:148)
at com.google.firebase.crashlytics.internal.network.HttpRequest.execute(HttpRequest.java:129)
at com.google.firebase.crashlytics.internal.settings.network.DefaultSettingsSpiCall.invoke(DefaultSettingsSpiCall.java:86)
at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:200)
at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:193)
at com.google.android.gms.tasks.zzp.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:60)
at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.io.IOException: Canceled
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:72)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:148) 
at com.google.firebase.crashlytics.internal.network.HttpRequest.execute(HttpRequest.java:129) 
at com.google.firebase.crashlytics.internal.settings.network.DefaultSettingsSpiCall.invoke(DefaultSettingsSpiCall.java:86) 
at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:200) 
at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:193) 
at com.google.android.gms.tasks.zzp.run(Unknown Source:2) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:60) 
at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27) 
at java.lang.Thread.run(Thread.java:764) 
我试过的:
  • 重建项目
  • 使 Android Studio 缓存无效
  • 下载和更新 google-services.json
  • 将 ext.enableCrashlytics = true 添加到 build.gradle

  • 但我没有结果

    最佳答案

    看来这个错误只发生在调试风格中。根据 Firebase 支持,解决方案应该是:

    Since you are using different app flavor, you should have different package names for each >flavor: com.example.prod and com.example.debug.These should configured in the console as different apps.

    关于Android Crashlytics InterruptedIOException 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63151759/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com