0

我想在gradle中添加第三方庫。這是顯示無法解析:無法解決:編譯'com.github.ParkSangGwon:TedPicker:v1.0.10'?

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' 
} 
+0

[Gradle未能解決Android Studio中的庫問題](https://stackoverflow.com/questions/28493470/gradle-failed-to-resolve-library-in-android-studio) –

+1

我不推薦該庫,因爲它取決於我寫的已停用的庫('cwac-camera')。 – CommonsWare

回答

1

您已經添加

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

} 

爲了您的倉庫,因爲它是在library page說的嗎?