Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Failed to resolve: com.android.support:design:25.4.0;Error:Failed to resolve: com.android.support:support-core-utils:25.4.0

I'm learning Firebase and I've been stuck because of these following errors :

Error:Failed to resolve: com.android.support:customtabs:25.4.0
Error:Failed to resolve: com.android.support.constraint:constraint-layout:1.1.0-beta1
Error:Failed to resolve: com.android.support:design:25.4.0
Error:Failed to resolve: com.android.support:support-core-utils:25.4.0
Error:Failed to resolve: com.android.support:cardview-v7:25.4.0

The dependencies in my app/build.gradle file are these:

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.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    //Firebase
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.google.firebase:firebase-auth:11.0.2'
    compile 'com.firebaseui:firebase-ui-auth:2.1.1'
    testCompile 'junit:junit:4.12'    
}

and for my build.gradle file outside the app folder

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

I would like to ask if what is/are solution/s for these errors? I've Been searching the net about the solutions for these errors but can't find one that can solve my problem.

like image 271
Henrych Avatar asked Jan 24 '26 15:01

Henrych


1 Answers

You need to change this line of code:

compile 'com.android.support.constraint:constraint-layout:1.0.2'

with

compile 'com.android.support.constraint:constraint-layout:1.0.1'

And this two lines to have the same version:

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

Hope it helps.

like image 164
Alex Mamo Avatar answered Jan 27 '26 04:01

Alex Mamo



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!