I am trying to add a third party library in gradle. It is showing following error:
Here is my gradle file :
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
compileOptions.encoding = 'ISO-8859-1'
defaultConfig {
applicationId "com.attendme.io"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.4" //1.4.1
//multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile files('libs/kandy-1.6.160.jar')
compile files('libs/gcm.jar')
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
//compile 'com.google.android.gms:play-services-gcm:8.4.0'
//compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.github.ParkSangGwon:TedPicker:v1.0.10'
}
When I was searching about this problem I found some solutions but they weren't working for me. How can I fix this issue ?
You need to add 2 maven repositories.
So make sure your build.gradle(Project) includes this
allprojects {
repositories {
jcenter()
maven { url "https://repo.commonsware.com.s3.amazonaws.com" }
maven { url "https://jitpack.io" }
}
}
and this goes in your build.gradle(app)
compile 'com.github.ParkSangGwon:TedPicker:v1.0.10'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With