Org.apache.http.legacy.jar Proguard Error
When I use httpclient-4.5.2.jar + httpcore-4.4.4.jar, Proguard works fine. But when I replace the above to packages by org.apache.http.legacy.jar, following Proguard error is repor
Solution 1:
use this below code into your build.gradle
instead import jar file :
useLibrary 'org.apache.http.legacy'
For reference check this code :
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.application.abc"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Post a Comment for "Org.apache.http.legacy.jar Proguard Error"