My gradle file:
apply plugin: 'com.android.application'
android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.skripsi.irwanto.paud"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProauardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.11
}
And I get Warning:Unable to find optional library: org.apache.http.legacy
build.gradle
? Hmmm. No. It doesn't work like that. Post your code and your logcat in their text form. – Dungdungan