找不到类'org.apache.http.params.SyncBasicHttpParams',从方法org.apache.http.impl.client.g.a中引用

时间:2018-06-06 07:16:04

标签: java android android-asynctask httpclient

Logcat在运行AsyncTask时返回此错误消息。它只发生在我构建一个apk并在应用程序中安装它时。当我直接在android studio中运行应用程序时它非常有效。

06-06 15:00:10.881 28013-28035/? E/dalvikvm: Could not find class 'org.apache.http.params.SyncBasicHttpParams', referenced from method org.apache.http.impl.client.g.a
06-06 15:00:10.976 28013-28035/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
                                                   Process: com.gmanmi.entertainment.mobile, PID: 28013
                                                   java.lang.RuntimeException: An error occured while executing doInBackground()
                                                       at android.os.AsyncTask$3.done(AsyncTask.java:300)
                                                       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
                                                       at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
                                                       at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                                                       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                       at java.lang.Thread.run(Thread.java:841)
                                                    Caused by: java.lang.IncompatibleClassChangeError: org.apache.http.params.SyncBasicHttpParams
                                                       at org.apache.http.impl.client.g.a(Unknown Source)
                                                       at org.apache.http.impl.client.b.q(Unknown Source)
                                                       at org.apache.http.impl.client.b.d(Unknown Source)
                                                       at org.apache.http.impl.client.b.r(Unknown Source)
                                                       at org.apache.http.impl.client.b.c(Unknown Source)
                                                       at org.apache.http.impl.client.b.a(Unknown Source)
                                                       at org.apache.http.impl.client.b.a(Unknown Source)
                                                       at org.apache.http.impl.client.b.execute(Unknown Source)
                                                       at com.gmanmi.entertainment.mobile.utils.j.b(Unknown Source)
                                                       at com.gmanmi.entertainment.mobile.utils.j.a(Unknown Source)
                                                       at com.gmanmi.entertainment.mobile.utils.j.doInBackground(Unknown Source)
                                                       at android.os.AsyncTask$2.call(AsyncTask.java:288)

0 个答案:

没有答案