我正在尝试在gradle中添加第三方库。它显示无法解决:
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 :(得分:1)
你有没有添加
repositories {
maven { url "https://repo.commonsware.com.s3.amazonaws.com" }
maven { url "https://jitpack.io" }
}
正如它在library page上所说的那样存储到您的存储库中?
答案 1 :(得分:0)
更改
maven {url“ https://repo.commonsware.com.s3.amazonaws.com”}
到
maven {url“ https://s3.amazonaws.com/repo.commonsware.com”}
在应用程序级别build.gradle