同步Gradle错误当我尝试在我的build.gradle依赖项上添加“compile”com.facebook.android:facebook-android-sdk:[4,5)'“

时间:2017-06-22 15:08:29

标签: android facebook facebook-graph-api

我正在尝试在我的应用程序上实现Facebook登录功能,我按照每一步操作,直到遇到“执行失败的任务':app:processDebugManifest'”错误。它说:

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
    is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
    Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:41 to override.

I don't know how to execute the suggestions and I am in dire need of help [编辑]先谢谢你们了。 I am not sure how to add files so here's a picture of the build.gradle file.

1 个答案:

答案 0 :(得分:0)

您有依赖冲突。确保所有com.android.support:..个导入的版本都相同,例如25.0.0并使用不是26+的固定版本,因为这也会导致问题。

修改:将com.android.support:appcompat-v7:26+更改为com.android.support:appcompat-v7:25.3.1