Hello I have get Gradle build failed error and i am using this link is useful for me but still getting same error so can't understand what's the problems.
Following are my code of gradle.build file.
My App:build.gradle file:
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig.with {
applicationId = "com.atreyainnovations.optographlocal"
minSdkVersion.apiLevel = 14
targetSdkVersion.apiLevel = 23
multiDexEnabled = true
/*versionCode 1
versionName "1.0"*/
}
}
android.ndk {
moduleName = "add-jni"
toochain = "clang"
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles.add(file("proguard-rules.txt"))
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//proguardFiles + file('proguard-android.txt')
}
}
}
library:build.gradle
apply plugin: 'com.android.model.library'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "22.0.0"
defaultConfig.with {
minSdkVersion.apiLevel = 14
targetSdkVersion.apiLevel = 23
multiDexEnabled = true
}
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles.add(file("proguard-rules.txt"))
}
}
}