My app was working fine . Today i have change some internal things and update my app . In release Apk i am getting this error :
Class 'org.apache.http.message.BufferedHeader' does not implement interface 'org.apache.http.NameValuePair'
My app was working fine in previous updates . I am not getting what is the problem . I am using pro-guard and also added rules properly. What is the main reason of this error. I have checked all answer of this particular error on stackoverflow.
Also Added this to build.gradle :
android {
useLibrary 'org.apache.http.legacy'
}
In Manifest:
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
Proguard:
-keep class org.apache.http.** { *; }
-keep class org.apache.** { *; }
-dontwarn org.apache.**
-dontwarn org.apache.http.**
-dontwarn org.apache.commons.**
-keep class com.google.api.** { *; }
-keepattributes Annotation