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

Posted 画梦

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于 Android 9.0 ClassNotFoundException: Didn't find class "org.apache.http.protocol.BasicHtt相关的知识,希望对你有一定的参考价值。

一、案例

--------- 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.BasicHtt的主要内容,如果未能解决你的问题,请参考以下文章

Android 9.0 AAudio源码分析

Android : 为系统服务添加 SELinux 权限 (Android 9.0)

分批推送!ZenFone5获得Android 9.0更新

国产骁龙845新机皇曝光,预装Android 9.0

(9.0系统设备)安卓神器Xposed框架root使用指南

Android 9.0/P(android p指安卓9.0版本) okhttp3网络请求出错