ClassNotFoundException: Didn't find class "org.apache.http.conn.scheme.SchemeRegistry
SchemeRegistry 在Android P上不可用了,
还想用的话,
1、在build.gradle的Android块里加:
useLibrary 'org.apache.http.legacy'
2、在application里加:
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
本文详细介绍了在Android P上遇到ClassNotFoundException: Didn't find class 'org.apache.http.conn.scheme.SchemeRegistry'的问题及其解决方案。通过在build.gradle中添加useLibrary指令及在application中加入特定的uses-library标签,可以成功解决此问题。
2万+

被折叠的 条评论
为什么被折叠?



