2017-04-05 1 views
11

내가 facebook-android-sdk:4.20.+com.android.support 오류 메시지와 충돌하는 라이브러리를 사용하고 있습니다 : 다음페이스 북 안드로이드 SDK 의존성 충돌

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.2.0, 25.0.0. Examples include com.android.support:animated-vector-drawable:25.2.0 and com.android.support:customtabs:25.0.0 less... (⌘F1) 
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.) 

나의 의존성이다. 사용 Gradle을 종속 보고서를 실행에

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile files('libs/YouTubeAndroidPlayerApi.jar') 

    compile 'com.android.support:appcompat-v7:25.2.0' 
    compile 'com.android.support:customtabs:25.0.0' 
    compile 'com.android.support:design:25.+' 
    compile 'com.android.support:cardview-v7:25.+' 
    compile 'com.android.support:recyclerview-v7:25.+' 
    compile 'com.fasterxml.jackson.core:jackson-core:2.7.4' 
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.4' 
    compile 'com.fasterxml.jackson.core:jackson-databind:2.7.4' 
    compile 'org.jsoup:jsoup:1.8.3' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'commons-io:commons-io:2.4' 
    compile 'com.google.android.gms:play-services-analytics:10.0.1' 
    compile 'com.facebook.android:facebook-android-sdk:4.+' 
    testCompile 'junit:junit:4.12' 
} 

: ./gradlew -q dependencies app:dependencies --configuration compile 다음은 facebook-android-sdk에 대한 결과입니다.

+--- com.facebook.android:facebook-android-sdk:4.+ -> 4.20.0 
| +--- com.android.support:support-v4:25.0.0 -> 25.2.0 (*) 
| +--- com.android.support:appcompat-v7:25.0.0 -> 25.2.0 (*) 
| +--- com.android.support:cardview-v7:25.0.0 -> 25.2.0 (*) 
| +--- com.android.support:customtabs:25.0.0 
| | +--- com.android.support:support-compat:25.0.0 -> 25.2.0 (*) 
| | \--- com.android.support:support-annotations:25.0.0 -> 25.2.0 
| \--- com.parse.bolts:bolts-android:1.4.0 
|   +--- com.parse.bolts:bolts-tasks:1.4.0 
|   \--- com.parse.bolts:bolts-applinks:1.4.0 
|    \--- com.parse.bolts:bolts-tasks:1.4.0 

올바른 의존성 조합은 무엇입니까? 페이스 북 SDK를 com.android.support:customtabs:25.0.0와 종속성이 있기 때문에 특정 경우

+0

이 답변은 도움이 될 것 같아요. http://stackoverflow.com/questions/35354359/gradle-error-after-including-facebook-sdk – PedroHidalgo

답변

14

문제는 그 버전은 오래되어 지원 라이브러리의 현재 버전은 25.2.0입니다.

컴파일 'com.android을 : 당신이 추가 시도 할 수 있도록

당신이 cardview-V7의 최신 버전 그래프 종속성에서 볼 수 있듯이

는 APPCOMPAT-V7 및 지원-V4는 이미 사용되고있다. 지원 : customtabs : 25.2.0 '

종속성에 따라 최신 버전의 customtabs도 facebook SDK에서 사용됩니다.

이 답변이 유용 할 수있다 : Gradle error after including facebook sdk

+0

내 문제가 해결되었습니다. 고맙습니다. – pess0a

관련 문제