How to solve java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer

To solve the this problem just put the following code[<uses-library android:name=”org.apache.http.legacy” android:required=”false”/>] below tag on the manifiest tag. For eg:

<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

has written 38 stories on this site.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*

Copyright © 2024 Programmer to Programmer- A website for web programming and mobile application programming tutorials.
Wordpress themes