ClassNotFoundException

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里加:

 

 

解决办法来源:https://stackoverflow.com/questions/52720945/classnotfoundexception-didnt-find-class-schemeregistry-on-android-9

 

 

你可能感兴趣的:(安卓开发遇到问题总结)