当前位置: 代码迷 >> 综合 >> Android QQ分享遇到Didn‘t find class “org.apache.http.conn.scheme.SchemeRegistry“闪退
  详细解决方案

Android QQ分享遇到Didn‘t find class “org.apache.http.conn.scheme.SchemeRegistry“闪退

热度:42   发布时间:2024-02-26 19:26:18.0

Apache HTTP 客户端弃用

从 Android 9 开始,默认情况下该内容库已从 bootclasspath 中移除且不可用于应用。要继续使用 Apache HTTP 客户端,以 Android 9 及更高版本为目标的应用可以向其 AndroidManifest.xml 添加以下内容:

 

<application>

...

<uses-library android:name="org.apache.http.legacy" android:required="false"/>

...

</application>
  相关解决方案