[펌] java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion
[My Case]
[Error] java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/HttpHost
[수정] Unity Android Target API Level을 26으로 낮춰서 해결
-------------------------------------------------------------------------------------------------
Do any of the following:
1- Update the play-services-maps library to the latest version:
com.google.android.gms:play-services-maps:16.1.0
2- Or include the following declaration within the <application> element of AndroidManifest.xml.
<uses-library android:name="org.apache.http.legacy" android:required="false" />
[출처]
java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion
I 've met such error when I use Android studio 3.1 to build an Android P 's app, the apk can be made ,but when I use it on Android P emulator , it will crash and throw below info, more details see ...
stackoverflow.com