When i use this in gradle it is showing as
"Error:Unable to find optional library: org.apache.http.legacy"
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.xxxxxxx.xxxxxxx"
minSdkVersion 15
targetSdkVersion 23
}
......
}
Project Level :
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
}
allprojects {
repositories {
jcenter()
}
}