当我向我的android studio项目添加一些依赖项时出现此错误........我在做什么错了?Gradle无法解析Android Studio中的依赖关系。这是我的错误
请参阅下面的代码。提前致谢。
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'org.json:json:20141113'
// This library handles authentication and authorization
compile 'com.spotify.sdk:[email protected]'
// This library handles music playback
compile 'com.spotify.sdk:[email protected]'
// All other dependencies for your app should also be here:
compile 'com.android.support:appcompat-v7:23.1.1'
}
后错误太多帖子,从发布'得到这个错误',这将检查logcat –
@PavneetSingh我不明白你的评论..你是什么意思请? –
发布你的日志猫,并分享你的build.gradle(模块项目) –