1

I am trying to add a third party library in gradle. It is showing Failed to resolve:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'

    })

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:cardview-v7:25.0.1'
    compile 'com.android.support:design:25.0.1'
    compile 'com.github.ParkSangGwon:TedPicker:v1.0.10'


    //compile 'gun0912.ted:tedbottompicker:1.0.12'

    testCompile 'junit:junit:4.12'
}
Pang
  • 9,564
  • 146
  • 81
  • 122
Sajjad Ali
  • 17
  • 5
  • Possible duplicate of [Gradle failed to resolve library in Android Studio](https://stackoverflow.com/questions/28493470/gradle-failed-to-resolve-library-in-android-studio) – Orkun Kocyigit Aug 18 '17 at 13:13
  • 1
    I do not recommend that library, as it depends upon a discontinued library (`cwac-camera`) that I wrote. – CommonsWare Aug 18 '17 at 13:14

2 Answers2

1

Have you added

repositories {
    maven { url "https://repo.commonsware.com.s3.amazonaws.com" }
    maven { url "https://jitpack.io" }

}

To your repositories as it's said on library page?

Anton Potapov
  • 1,265
  • 8
  • 11
0

change

maven { url "https://repo.commonsware.com.s3.amazonaws.com" }

to

maven { url "https://s3.amazonaws.com/repo.commonsware.com" }

in app level build.gradle