java.lang.ClassNotFoundException

玲の發表於2019-01-19

今天在寫QQ第三方登入的時候遇到了導致app崩潰的一個問題:

java.lang.ClassNotFoundException: Didn`t find class "org.apache.http.conn.scheme.SchemeRegistry"

解決方法:

在manifests包下的AndroidManifest.xml中新增如下程式碼

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

具體原由並不是很清楚,如果有人知道的話麻煩可以解釋下原由,謝謝!!!

相關文章