我正在尝试将Giphy Android SDK添加到我的Android项目中。在Giphy SDK's documentation中,提到了在项目gradle.build文件中添加:
repositories {
maven {
url "https://giphy.bintray.com/giphy-sdk"
}
}并在模块的gradle.build文件中添加:
compile('com.giphy.sdk:core:1.0.0@aar') {
transitive=true
}但是当我同步的时候,Android Studio给了我一个错误,说:
Failed to resolve: com.giphy.sdk:core:1.0.0有人知道我错过了什么吗?
发布于 2018-03-06 18:26:40
确保添加以下行
repositories {
maven {
url "https://giphy.bintray.com/giphy-sdk"
}
}在allprojects下,而不是像这样在buildscript下
allprojects {
repositories {
google()
jcenter()
maven {
url "https://giphy.bintray.com/giphy-sdk"
}
}
}https://stackoverflow.com/questions/48456064
复制相似问题