首页 > 移动平台 > 详细

关于 Android 9.0 ClassNotFoundException: Didn't find class "org.apache.http.protocol.BasicHttpContext"

时间:2020-01-07 14:14:12      阅读:206      评论:0      收藏:0      [点我收藏+]

一、案例

--------- beginning of crash
2020-01-07 09:48:43.794 20120-20156/? E/AndroidRuntime: FATAL EXCEPTION: pool-4-thread-1
Process: com.sjylz.sanli, PID: 20120
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/protocol/BasicHttpContext;
at com.lidroid.xutils.HttpUtils.<init>(Unknown Source:5)
at com.lidroid.xutils.HttpUtils.<init>(Unknown Source:1)
at com.jeany.e.a.a(Unknown Source:34)
at com.jeany.e.a.b.a(Unknown Source:98)
at com.jeany.b.c.h(Unknown Source:1)
at com.jeany.b.c.g(Unknown Source:3)
at com.jeany.b.c.b(Unknown Source:10)
at com.jeany.a.a$1.run(Unknown Source:4)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
Caused by: java.lang.ClassNotFoundException: org.apache.http.protocol.BasicHttpContext
at com.lidroid.xutils.HttpUtils.<init>(Unknown Source:5)
at com.lidroid.xutils.HttpUtils.<init>(Unknown Source:1)
at com.jeany.e.a.a(Unknown Source:34)
at com.jeany.e.a.b.a(Unknown Source:98)
at com.jeany.b.c.h(Unknown Source:1)
at com.jeany.b.c.g(Unknown Source:3)
at com.jeany.b.c.b(Unknown Source:10)
at com.jeany.a.a$1.run(Unknown Source:4)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)

二、详见参考文档

三、参考文档

解决闪退问题:https://blog.csdn.net/weitao_666/article/details/90082986

      :https://blog.csdn.net/wahaha13168/article/details/81032385

解决网络问题:https://blog.csdn.net/qq_39959838/article/details/82918676

关于 Android 9.0 ClassNotFoundException: Didn't find class "org.apache.http.protocol.BasicHttpContext"

原文:https://www.cnblogs.com/pinweyshg/p/12160642.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!