Morton
Morton

Reputation: 5782

Compile 'com.firebaseui:firebase-ui:1.0.1' shows error

I want to use firebse-ui , when i add compile 'com.firebaseui:firebase-ui:1.0.1' , it shows error

Error:Failed to resolve: com.twitter.sdk.android:twitter:2.2.0

I had install Android 7.1.1 API level 25 , it can't help

What should i do fix this error ? Thanks in advance.

Here is my dependencies:

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:25.3.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.1'
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.google.firebase:firebase-storage:10.0.1'
    compile 'com.firebaseui:firebase-ui:1.0.1'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:recyclerview-v7:25.3.0'
}
apply plugin: 'com.google.gms.google-services'

Upvotes: 1

Views: 3630

Answers (2)

Mohamed Dernoun
Mohamed Dernoun

Reputation: 825

Check also which version match your Firebase vision on the table defined here FirebaseUI-Android#dependencies, and change the source of maven repository in your project gradle from mavenLocal() to

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

this is resolve my problem

Upvotes: 0

MohammedAlSafwan
MohammedAlSafwan

Reputation: 902

Please check the Firebase github to install their library correctly.

For your current situation the issue been resolved and you only need to change

compile 'com.firebaseui:firebase-ui:1.0.1'

to

compile 'com.firebaseui:firebase-ui:1.2.0'

Also, make sure that your Project gradle looks something like this:

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()

        //The repair for your issue with twitter
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
}

However, it's best to know what your really want from this library in order to not over size your application by adding libraries you don't need

Upvotes: 1

Related Questions