|
恩,这个已经知道怎么解决了. 谢谢导演!
但在安卓平台下,又遇到一个新问题,日志如下:
--------- beginning of crash
12-20 18:16:40.450 19260-19309/com.hampoo.youzan E/AndroidRuntime: FATAL EXCEPTION: Thread-5
Process: com.hampoo.youzan, PID: 19260
java.lang.NoSuchFieldError: No field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes2.dex)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
at com.youzan.open.sdk.util.http.DefaultHttpClient.init(DefaultHttpClient.java:80)
at com.youzan.open.sdk.util.http.DefaultHttpClient.<init>(DefaultHttpClient.java:53)
at com.hampoo.youzan.YouzanPayer$2.run(YouzanPayer.java:89)
at java.lang.Thread.run(Thread.java:776)
程序没有调用有赞jar包的类,也是去找了安卓系统jar里的类,这两个jar里的类又有不同. 有同学遇到过吗? |
|
|
|
|
|
|