Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sync failed after FirebaseUI dependency added

In build.gradle(app) dependencies:

compile 'com.google.firebase:firebase-database:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'

This is the line that causes failure (without this line, it syncs without any problems)

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

Error messages:

Failed to resolve: com.android.support:customtabs:25.4.0
Failed to resolve: com.android.support.constraint:constraint-layout:1.1.0-beta1
Failed to resolve: com.android.support:design:25.4.0
Failed to resolve: com.android.support:cardview-v7:25.4.0
like image 234
Top Serious Avatar asked Apr 11 '26 22:04

Top Serious


1 Answers

I recommend to use this guide for solving firebase-ui-auth dependency error: Firebase UI Auth

Secondly, for solving dependency error with com.android.support: in your project,

Go to project level build.gradle & check if it looks exactly like this:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}
like image 70
Sneh Pandya Avatar answered Apr 13 '26 11:04

Sneh Pandya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!