Everythink在 android 2.3(最小sdk)到4.4.4之间运行良好.但在android L(预览版)中,我的应用失败了:
Tue Aug 12 14:34:40 BRT 2014 :
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate at
com.android.org.conscrypt.SSLNullSession.getPeerCertificates(SSLNullSession.java:104)
at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:93)
at
org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:388)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:165)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
….
我完全不知道如何解决它.
任何帮助将非常感激.
解决方法
我们的应用程序基于离子和AndroidAsync网络库,它有这个错误:
https://github.com/koush/AndroidAsync/issues/187
对最新版本(1.4.0)的更新修复了Android L上的“无对等证书”问题.