How to solve java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer
- Thursday, February 27, 2020, 18:16
- Android, How-to
- Add a comment
To solve the this problem just put the following code[<uses-library android:name=”org.apache.http.legacy” android:required=”false”/>] below
<application
android:icon=”@drawable/icon”
……
android:theme=”@style/AppTheme.NoActionBar”>
<uses-library android:name=”org.apache.http.legacy” android:required=”false”/>
This problem is caused by targeting target Android 9 and above versions of android. Thanks.
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!