gpt4 book ai didi

android - Crashlytics 报告错误的行号

转载 作者:行者123 更新时间:2023-12-03 14:56:38 28 4
gpt4 key购买 nike

在过去的几周里,我在 import 语句行中看到了很多带有行号的崩溃。

例如这个堆栈跟踪在第 2 行崩溃

Fatal Exception: java.lang.IllegalArgumentException: Unexpected TLS version: NONE
at okhttp3.TlsVersion.forJavaName(TlsVersion.java:2)
at okhttp3.Handshake.get(Handshake.java:4)
at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:12)
at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:4)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:13)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:25)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:1)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:5)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:5)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:22)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:22)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:5)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:10)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:1)

有没有人找到解决方案?

最佳答案

使用版本 3.10.0。

避免使用无效的 HTTPS session 。这可以防止 OkHttp因错误而崩溃 Unexpected TLS version: NONE .

来源:https://square.github.io/okhttp/changelog_3x/

关于android - Crashlytics 报告错误的行号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53150654/

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