我查了下 说是 okhttp3的问题,虽然自己测试还有云测都没影响到游戏的样子。但是看着很膈应,
查了下说升级 okhttp3可以解决,有没有大佬教教怎么搞?
直接把 okhttp-3.12.7.jar 换了重新构建行?
Android 兼容性 使用公共 Android SDK 中没有的 API 可能会导致您的应用无法运行。我们的测试可能无法找出所有不受支持的 API。系统仅会显示非重复堆栈轨迹。
API Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V
第 1 个堆栈轨迹 StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V
“StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(Ljava/lang/String;)V
at android.os.StrictMode.lambda$static$1(StrictMode.java:416)
at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
at java.lang.Class.getDeclaredMethodInternal(Native Method)
at java.lang.Class.getPublicMethodRecursive(Class.java:2079)
at java.lang.Class.getMethod(Class.java:2066)
at java.lang.Class.getMethod(Class.java:1693)
at org.cocos2dx.okhttp3.internal.platform.d.a(SourceFile:164)
at org.cocos2dx.okhttp3.internal.platform.d.a(SourceFile:149)
at org.cocos2dx.okhttp3.internal.platform.d.a(SourceFile:66)
at org.cocos2dx.okhttp3.internal.platform.d.b(SourceFile:86)
at org.cocos2dx.okhttp3.internal.platform.a.configureTlsExtensions(SourceFile:123)
at org.cocos2dx.okhttp3.internal.connection.RealConnection.connectTls(SourceFile:315)
at org.cocos2dx.okhttp3.internal.connection.RealConnection.establishProtocol(SourceFile:284)
at org.cocos2dx.okhttp3.internal.connection.RealConnection.connect(SourceFile:169)
at org.cocos2dx.okhttp3.internal.connection.StreamAllocation.findConnection(SourceFile:258)
at org.cocos2dx.okhttp3.internal.connection.StreamAllocation.findHealthyConnection(SourceFile:135)
at org.cocos2dx.okhttp3.internal.connection.StreamAllocation.newStream(SourceFile:114)
at org.cocos2dx.okhttp3.internal.connection.ConnectInterceptor.intercept(SourceFile:42)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:121)
at org.cocos2dx.okhttp3.internal.cache.CacheInterceptor.intercept(SourceFile:93)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:121)
at org.cocos2dx.okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:93)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(SourceFile:127)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:121)
at org.cocos2dx.okhttp3.a.e(SourceFile:257)
at org.cocos2dx.okhttp3.a$a.execute(SourceFile:201)
at org.cocos2dx.okhttp3.internal.NamedRunnable.run(SourceFile:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)”
API Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V
第 1 个堆栈轨迹 "
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V"
“StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Lcom/android/org/conscrypt/ConscryptEngineSocket;->setUseSessionTickets(Z)V
at android.os.StrictMode.lambda$static$1(StrictMode.java:416)
at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
at java.lang.Class.getDeclaredMethodInternal(Native Method)
at java.lang.Class.getPublicMethodRecursive(Class.java:2079)
at java.lang.Class.getMethod(Class.java:2066)
at java.lang.Class.getMethod(Class.java:1693)
at org.cocos2dx.okhttp3.internal.platform.d.a(SourceFile:164)
at org.cocos2dx.okhttp3.internal.platform.d.a(SourceFile:149)
at org.cocos2dx.okhttp3.internal.platform.d.a(SourceFile:66)
at org.cocos2dx.okhttp3.internal.platform.d.b(SourceFile:86)
at org.cocos2dx.okhttp3.internal.platform.a.configureTlsExtensions(SourceFile:122)
at org.cocos2dx.okhttp3.internal.connection.RealConnection.connectTls(SourceFile:315)
at org.cocos2dx.okhttp3.internal.connection.RealConnection.establishProtocol(SourceFile:284)
at org.cocos2dx.okhttp3.internal.connection.RealConnection.connect(SourceFile:169)
at org.cocos2dx.okhttp3.internal.connection.StreamAllocation.findConnection(SourceFile:258)
at org.cocos2dx.okhttp3.internal.connection.StreamAllocation.findHealthyConnection(SourceFile:135)
at org.cocos2dx.okhttp3.internal.connection.StreamAllocation.newStream(SourceFile:114)
at org.cocos2dx.okhttp3.internal.connection.ConnectInterceptor.intercept(SourceFile:42)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:121)
at org.cocos2dx.okhttp3.internal.cache.CacheInterceptor.intercept(SourceFile:93)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:121)
at org.cocos2dx.okhttp3.internal.http.BridgeInterceptor.intercept(SourceFile:93)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(SourceFile:127)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:147)
at org.cocos2dx.okhttp3.internal.http.RealInterceptorChain.proceed(SourceFile:121)
at org.cocos2dx.okhttp3.a.e(SourceFile:257)
at org.cocos2dx.okhttp3.a$a.execute(SourceFile:201)
at org.cocos2dx.okhttp3.internal.NamedRunnable.run(SourceFile:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)”