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" />