在为firebase-ui-auth添加依赖项时出错:2.3.0 [英] Error in adding dependency for firebase-ui-auth:2.3.0

查看:374
本文介绍了在为firebase-ui-auth添加依赖项时出错:2.3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  //添加库
编译'com.android.support:design:26.1.0'
编译'com.firebaseui:firebase-ui:0.2.0'
compile'c​​om.google.android.gms:play-services- auth:11.2.2'
compile'c​​om.google.firebase:firebase-auth:11.2.2'

以及为应用程序留下的唯一代码是:

$ p $编译'com.firebaseui:firebase-ui-auth :2.3.0'

只要我添加这个,我得到一个错误: / p>


错误:任务':app:processDebugManifest'的执行失败。
Manifest合并失败:属性meta-data#android.support.VERSION@value value =(26.1.0)from [com.android.support:design:26.1.0] AndroidManifest.xml:28:13-35
也存在于[com.android.support:customtabs:26.0.1] AndroidManifest.xml:25:13-35 value =(26.0.1)。
建议:在AndroidManifest.xml:26:9-28:38的元素中添加'tools:replace =android:value'来覆盖。

我已经试过编译'com.firebaseui:firebase-ui-auth:1.2.0'但没有用。



需要一些帮帮我!提前感谢:)

解决方案

检查这个链接 firebase UI 自述文件中:


<如果您想使用FirebaseUI的传递依赖关系的新版本(如Firebase,Play服务或Android支持库),则需要添加显式的编译声明在您的 build.gradle 中为所有FirebaseUI的依赖关系添加您要使用的版本。例如,如果您想要使用Play服务/ Firebase版本 FOO ,并且 $ 支持库版本 BAR 为您正在使用的每个FirebaseUI模块添加以下额外行:
$ b

  compilecom.google.firebase:firebase-auth:$ FOO
compile com.google.android.gms:play-services-auth:$ FOO

compilecom.android.support:design:$BAR
compilecom.android.support: customtabs:$ BAR
compilecom.android.support:cardview-v7:$BAR

然后在你的情况下,你必须使用:

  compilecom.android.support:design:26.1.0 
compilecom.android.support:customtabs:26.1.0
compilecom.android.support:cardview-v7:26.1.0


I'm facing this issue since yesterday... I am adding:

//Add Library
compile 'com.android.support:design:26.1.0'
compile 'com.firebaseui:firebase-ui:0.2.0'
compile 'com.google.android.gms:play-services-auth:11.2.2'
compile 'com.google.firebase:firebase-auth:11.2.2'

and the only code left for the app is:

compile 'com.firebaseui:firebase-ui-auth:2.3.0'

As soon as I'm adding this I'm getting an error:

Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.1.0) from [com.android.support:design:26.1.0] AndroidManifest.xml:28:13-35 is also present at [com.android.support:customtabs:26.0.1] AndroidManifest.xml:25:13-35 value=(26.0.1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:26:9-28:38 to override.

I've already tried compile 'com.firebaseui:firebase-ui-auth:1.2.0' but no use.

Need some help! Thanks in advance :)

解决方案

Check this link in the firebase UI readme:

If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such as Firebase, Play services, or the Android support libraries, you need to add explicit compile declarations in your build.gradle for all of FirebaseUI's dependencies at the version you want to use.

For example if you want to use Play services/Firebase version FOO and support libraries version BAR add the following extra lines for each FirebaseUI module you're using:

Auth:

compile "com.google.firebase:firebase-auth:$FOO"
compile "com.google.android.gms:play-services-auth:$FOO"

compile "com.android.support:design:$BAR"
compile "com.android.support:customtabs:$BAR"
compile "com.android.support:cardview-v7:$BAR"

Then in your case you have to use:

compile "com.android.support:design:26.1.0"
compile "com.android.support:customtabs:26.1.0"
compile "com.android.support:cardview-v7:26.1.0"

这篇关于在为firebase-ui-auth添加依赖项时出错:2.3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆