运行时okhttp报错
-
core 2.13.0-RC2
IDEA里调试的时候没有任何问题,打包出来使用okhttp就报错
[92m2022-11-16 11:17:47 I/Net *****: ECDH key is invalid, start to fetch e cdh public key from server.[0m [31m2022-11-16 11:17:47 E/Net *****: Failed to fetch ECDH public key from server, using default key instead java.net.UnknownServiceException: Unable to find acceptable protocols. isFallbac k=false, modes=[ConnectionSpec(cipherSuites=[TLS_AES_128_GCM_SHA256, TLS_AES_256 _GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA2 56, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA3 84, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY130 5_SHA256, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_12 8_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_ 256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA], tlsVersions=[TLS_1_3, TLS_1_2], sup portsTlsExtensions=true), ConnectionSpec()], supported protocols=[TLSv1.2] at okhttp3.internal.connection.ConnectionSpecSelector.configureSecureSoc ket(ConnectionSpecSelector.kt:63) at okhttp3.internal.connection.RealConnection.connectTls(RealConnection. kt:373) at okhttp3.internal.connection.RealConnection.establishProtocol(RealConn ection.kt:337) at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt: 209) at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFin der.kt:226) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(Exch angeFinder.kt:106) at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt: 255) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInter ceptor.kt:32) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt :95) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.k t:83) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndF ollowUpInterceptor.kt:76) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$ okhttp(RealCall.kt:201) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:624) at java.lang.Thread.run(Thread.java:748)