Failed to resolve: com.android.support:cardview-v7:26.0.0 android

ahmed khattab picture ahmed khattab · Jul 14, 2017 · Viewed 114.5k times · Source

i try to add recyclerview to my project and get this error appear and i added it from android studio dependencies this is error appear when try to add recyclerview in android studio

this is the compiled version ...

Answer

Gabriele Mariotti picture Gabriele Mariotti · Jul 27, 2017

Starting from version 26 of support libraries make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint.

Something like;

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