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

在使用android-json-rpc的时候报

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

错误,

在AndroidManifest.xml文件的application标签里面加入

<uses-library android:name="org.apache.http.legacy" android:required="false" />
就可以解决了!

猜你喜欢

转载自blog.csdn.net/wahaha13168/article/details/81032385