[英]Sync Gradle Error When I try to add “compile 'com.facebook.android:facebook-android-sdk:[4,5)'” on my build.gradle dependencies
I am trying to implement a Facebook login feature on my app and I followed every step until I encountered an "Execution failed for task ':app:processDebugManifest'" error. 我正在尝试在我的应用程序上实现Facebook登录功能,我按照每一步,直到遇到“执行失败的任务':app:processDebugManifest'”错误。 It says : 它说 :
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.
[EDIT]Thank you in advance guys. [编辑]先谢谢你了。 I am not sure how to add files so here's a picture of the build.gradle file. 我不知道如何添加文件,所以这里是build.gradle文件的图片。
You have dependency conflicts. 你有依赖冲突。 Make sure all your com.android.support:..
imports are of the same version eg 25.0.0
and use fixed versions not 26+
as this can also cause problems. 确保所有com.android.support:..
导入版本都是相同的版本,例如25.0.0
并使用不是26+
固定版本,因为这也会导致问题。
edit: change com.android.support:appcompat-v7:26+
to com.android.support:appcompat-v7:25.3.1
编辑:将com.android.support:appcompat-v7:26+
更改为com.android.support:appcompat-v7:25.3.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.