私app.gradleファイルが含まれています: -Gradleを使用してアンドロイドスタジオプロジェクトにFacebook SDKを追加しています。マニフェスト合併でエラーが発生しませんでした。複数のサポートライブラリが競合しています。何をすべきか?
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:26.+'
compile 'com.android.support:design:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.github.bumptech.glide:glide:4.0.0'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
testCompile 'junit:junit:4.12'
}
Gradleのコンソールエラー出力
- 何が悪かったのか: 実行がタスクに失敗しました ':アプリ:processDebugManifest'。
マニフェスト合併に失敗しました:属性meta-data#[email protected]値=(26.0.0-アルファ)[com.android.support:design:26.0.0-alpha1]のAndroidManifest.xmlから: 27:9-38 も[com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value =(25.3.1)にあります。 提案:AndroidManifest.xml:25:5-27:41の要素に 'tools:replace = "android:value"'を追加してオーバーライドしてください。あなたは、最新のFacebook SDKを使用する必要が
あなたの投稿を投稿してください。 – user392117
これをあなたのAndroid Manifestの中に入れてください - 'tools:replace =" android:value "' – hsm59
私のアプリケーションgradle.buildファイルの依存関係を使用しています。 – ankiraw91