In build.gradle ,
defaultConfig{
multiDexEnabled true
dependency
configurations
{
compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
}
}
Tuesday, March 28, 2017
Thursday, January 12, 2017
How to resolve org.apache.http does not exist
Error:(6, 23) error: package org.apache.http does not exist
Solution:
If you are using target sdk as 23 add below code in your build.gradle
android{
compileSdkVersion 23
buildToolsVersion '23.0.1'
useLibrary 'org.apache.http.legacy'
}
Solution:
If you are using target sdk as 23 add below code in your build.gradle
android{
compileSdkVersion 23
buildToolsVersion '23.0.1'
useLibrary 'org.apache.http.legacy'
}
Subscribe to:
Posts (Atom)