朋友,在将FB SDK添加到我的Android APP时出现以下依赖项错误
错误: 无法解决:com.android.support:cardview-v7:23.2.0 无法解决:com.android.support:support-v4:23.2.0
我的APP快照:Gradle:
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
// useLibrary 'org.apache.http.legacy'
repositories {
mavenCentral()
}
defaultConfig {
applicationId "com.unwiredmetrics.priceplanoptimization"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
compile 'joda-time:joda-time:2.8.2'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
}
答案 0 :(得分:0)
尝试使用正确的语法,如:
compile 'com.facebook.android:facebook-android-sdk:4.+'