使用新浪6.4.5完整版,在部分设备上会出现下面的crash报错
[Java]
纯文本查看 复制代码
01
02
03
04
05
06
07
08
09
10
11
12
13
14
|
java.lang.ClassCastException: java.net.Socket cannot be cast to javax.net.ssl.SSLSocket
at com.android.okhttp.internal.http.HttpsEngine.connected(HttpsEngine.java:
45
)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:
303
)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:
255
)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:
206
)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:
355
)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:
89
)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:
161
)
at com.sina.weibo.sdk.net.HttpManager.requestHttpExecute(HttpManager.java:
80
)
at com.sina.weibo.sdk.net.HttpManager.openUrl(HttpManager.java:
63
)
at com.sina.weibo.sdk.utils.AidTask.loadAidFromNet(AidTask.java:
400
)
at com.sina.weibo.sdk.utils.AidTask.access$
200
(AidTask.java:
49
)
at com.sina.weibo.sdk.utils.AidTask$
2
.run(AidTask.java:
232
)
at java.lang.Thread.run(Thread.java:
848
)
|
目前这个问题是由于新浪SDK的bug导致,部分设备可以通过导入CA证书的方式解决
CA证书下载链接
点击链接后,将此证书放到asset下,重新clean工程打包测试,后续我们会持续关注新浪SDK关于此问题的解决方案,有进展即时同步更新