03/12/2025 13:45:18
Problem Description
Android 9.0 crashes when the user logs in it and reports an error like "ClassNotFoundException: Didn't find class "org.apache.http.conn.scheme.SchemeRegistry"". Details are shown in the following diagram.
Cause of the Problem
Apache http is used in QQ opensdk. Starting from Android 9.0, if you want to continue to use apache http, you need to add a configuration description under the "application" node in the AndroidManifest.xml file according to Google's official instruction documentation, because the org.apache.http.legacy library is not available on these devices.
Solution
Add the following configuration description under the "application" node in the AndroidManifest.xml file to solve the problem.
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Copyright © 2025 MSDK.
All rights reserved.
All rights reserved.