error compile 'com.android.support:appcompat-v7:25.3.0'

1

This is my build.gradle:

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.example.oscar.myrecyclerview"
        minSdkVersion 21
        targetSdkVersion 25
        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(dir: 'libs', include: ['*.jar'])
    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.2'
    compile 'com.android.support:cardview-v7:25.3.0'
    compile 'com.android.support:recyclerview-v7:25.3.0'
    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.google.firebase:firebase-auth:10.0.1'
    compile 'com.google.firebase:firebase-storage:10.0.1'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    testCompile 'junit:junit:4.12'
}

marks me an error in 'com.android.support:appcompat-v7:25.3.0' and I am using all of the sites in their version and I do not know why this error marks me, I thank you for your answers in advance

this is what I have in the android studio and I do not know why I get the error

There is this one that did not work out before

    
asked by oscar rodriguez 28.03.2017 в 16:23
source

1 answer

1

If you place the mouse pointer over the "error" you will see a message similar to:

It's not really an error it's a warning which indicates:

  

GradleCompatible

     

Summary: Incompatible Gradle Versions

     

Priority: 8/10 Severity: Error Category: Correctness

     

There are some combinations of libraries, or tools and   libraries, which are Incompatible, or can lead to errors. One of   these incompatibilities is to compile a version of the libraries of   Android support that is not the most recent version (or In particular,   a lower version than your targetSdkVersion.)

The truth is that in your build.gradle you should try to define a version similar to the one defined in targetSdkVersion .

    
answered by 28.03.2017 / 17:29
source