错误:任务':app:processDebugManifest'执行失败。 >清单合并失败

时间:2017-10-28 02:53:11

标签: android firebase android-gradle google-play-services firebaseui

目前我有这些依赖

compile 'com.android.support:recyclerview-v7:26.0.+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:recyclerview-v7:26.0.+'
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.jakewharton:butterknife:8.7.0'
compile 'com.android.support:support-v4:26.+'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.android.support:support-compat:25.1.1'
compile 'com.daimajia.easing:library:2.0@aar'
compile 'com.daimajia.androidanimations:library:2.3@aar'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:cardview-v7:26.0.+'
compile 'com.scalified:fab:1.1.3'
compile 'com.mindorks:paracamera:0.2.2'
compile 'com.firebaseui:firebase-ui-database:1.1.0'
compile 'com.google.firebase:firebase-auth:11.0.1'

将这些添加到现有的

之后
compile 'com.firebaseui:firebase-ui:2.0.1'
compile 'com.firebaseui:firebase-ui-auth:2.0.1'

错误:任务':app:processDebugManifest'执行失败。

  

清单合并失败:[com.android.support:design:25.3.1] AndroidManifest.xml:27:9-31中的属性meta-data#android.support.VERSION@value value =(25.3.1)       也出现在[com.android.support:recyclerview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value =(26.0.0-alpha1)。       建议:添加'工具:replace =" android:value"'到AndroidManifest.xml:25:5-27:34的元素覆盖。

请帮助解决问题

1 个答案:

答案 0 :(得分:0)

有一些错误:

使用相同版本的Firebase和Google Play服务

变化:

compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.google.firebase:firebase-auth:11.0.1'

使用最新版本:

compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.android.gms:play-services:11.4.2'
compile 'com.google.firebase:firebase-storage:11.4.2'
compile 'com.google.firebase:firebase-auth:11.4.2'

使用相同版本的支持库

compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:support-compat:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'

FirebaseUI依赖于固定版本的firebase库。

检查the table

为方便起见,以下是一些例子:

FirebaseUI Version  Firebase/Play Services Version
3.1.0               11.4.2
3.0.0               11.4.2
2.4.0               11.4.0
2.3.0               11.0.4
2.2.0               11.0.4
2.1.1               11.0.2
2.0.1               11.0.1

然后你必须更改你的依赖项:

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