04/29/2024 11:54:53

问题描述

Android 9.0登录时crash,报错“ClassNotFoundException: Didn't find class "org.apache.http.conn.scheme.SchemeRegistry"”,详情如下图所示。

图片描述

问题原因

手Q opensdk里使用了apache http。Android 9.0开始如果想继续使用apache http的话,根据谷歌官方说明文档,需要在AndroidManifest.xml文件中application节点下添加配置说明。因为这些设备上,org.apache.http.legacy库不可用。

解决方案

在AndroidManifest.xml文件中application节点下添加以下配置说明解决。

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



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""