1. 程式人生 > >Android java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion

Android java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion

安卓報錯:

java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion

解決:

在AndroidManifest.xml檔案的application標籤裡面加入

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