Nishant Bhakta
Nishant Bhakta

Reputation: 2987

Manifest merger failed when adding Firebase-ui-auth in android

I am unable to configure Firebase-ui-auth in my app. I have tried all versions of firebase-ui-auth but have so far failed.

I read many questions related to firebase-ui-auth but none have helped. I do not want to change my current SDK version.

I have added the below line in gradle.build(Project:Project_Name) :

maven { url 'https://maven.fabric.io/public' }

and this is my gradle.build(Module:app) :

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '26.0.0'
    defaultConfig {
        applicationId "com.example.nishant.kitbook"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    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:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.firebaseui:firebase-ui-auth:1.1.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

Here is the error I am getting:

 Error:Execution failed for task ':app:processDebugManifest'.
 Manifest merger failed : Attribute application@supportsRtl value=(true) from AndroidManifest.xml:12:9-35   is also present at [com.firebaseui:firebase-ui-auth:1.1.1] AndroidManifest.xml:14:18-45 value=(false).  Suggestion: add 'tools:replace="android:supportsRtl"' to <application> element at AndroidManifest.xml:8:5-33:19 to override.

Upvotes: 0

Views: 568

Answers (2)

Vineet Jain
Vineet Jain

Reputation: 59

I had to drop by a version from 2.1.0 to 2.0.1 for the Gradle file to compile properly.

Upvotes: 1

Nishant Bhakta
Nishant Bhakta

Reputation: 2987

Ok this eat my half a day. i just changed firebase-ui-auth version to 1.0.1 from 1.1.1 and it worked. if anyone got any problem relating firebase-ui just check firebase-ui version one by one in descending order, one should work for you.

Upvotes: 0

Related Questions