在AndroidManifest.xml的<application>标签内添加:
<uses-library android:name="org.apache.http.legacy" android:required="false" />
原帖地址:
https://stackoverflow.com/questions/50461881/java-lang-noclassdeffounderrorfailed-resolution-of-lorg-apache-http-protocolve