Could not find method com.loopj.android.http.AsyncHttpResponseHandler

//////////////////////////2016/10/19//////////////////////

////////////////////////by   xbw/////////////////////////////


DexOpt: illegal method access (call Lcom/loopj/android/http/AsyncHttpResponseHandler;.getResponseData (Lorg/apache/http/HttpEntity;)[B from Lcom/xbw/mvp/ui/SplashActivity$2$1$1;)
10-19 18:25:37.684 3517-3517/com.xbw.mvp I/dalvikvm: Could not find method com.loopj.android.http.AsyncHttpResponseHandler.getResponseData, referenced from method com.xbw.mvp.ui.SplashActivity$2$1$1.access$super
10-19 18:25:37.684 3517-3517/com.xbw.mvp W/dalvikvm: VFY: unable to resolve virtual method 17287: Lcom/loopj/android/http/AsyncHttpResponseHandler;.getResponseData (Lorg/apache/http/HttpEntity;)[B
10-19 18:25:37.684 3517-3517/com.xbw.mvp D/dalvikvm: VFY: replacing opcode 0x6f at 0x0156
10-19 18:25:42.669 3517-4020/com.xbw.mvp W/System.err: javax.net.ssl.SSLException: hostname in certificate didn't match:  != <*.ucdl.pp.uc.cn> OR <*.ucdl.pp.uc.cn>
10-19 18:25:42.679 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:185)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:114)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:95)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:388)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:165)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
10-19 18:25:42.689 3517-4020/com.xbw.mvp W/System.err:     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
10-19 18:25:42.699 3517-4020/com.xbw.mvp W/System.err:     at com.loopj.android.http.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146)
10-19 18:25:42.699 3517-4020/com.xbw.mvp W/System.err:     at com.loopj.android.http.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)
10-19 18:25:42.699 3517-4020/com.xbw.mvp W/System.err:     at com.loopj.android.http.AsyncHttpRequest.run(AsyncHttpRequest.java:106)
10-19 18:25:42.699 3517-4020/com.xbw.mvp W/System.err:     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
10-19 18:25:42.699 3517-4020/com.xbw.mvp W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-19 18:25:42.699 3517-4020/com.xbw.mvp W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-19 18:25:42.709 3517-4020/com.xbw.mvp W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-19 18:25:42.709 3517-4020/com.xbw.mvp W/System.err:     at java.lang.Thread.run(Thread.java:841)

之前的http请求都是一点一点手写的,繁琐不说,数据获取效果也不好,所以换了一个框架,体验了一天真实特别爽,

android-async-http-1.4.8

gson-2.3.1

gson没得说,这个http1.4.8稍微有点问题,,就是上边的一串错误。。。

https:\/\/pic4.zhimg.com\/v2-316d6508b203a194a0c67577d12d368b.jpg
这是json数据其中的图片url,

想了一下可能是https的问题,,,结果改成http后真的好了,,,

可能http1.4.8不支持https吧

你可能感兴趣的:(奇技淫巧,Android开发)