Errors in android Studio, does not recognize CardView

1

Please, I have this error for several hours, the card view support appears in red, and another thing, the folder .gradle, thanks also appears in yellow.

    
asked by Juan David 06.03.2018 в 04:37
source

1 answer

0

Add the dependency related to CardView in your file build.gradle , you probably need the dependency of the library of design (design).

dependencies {

    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'com.android.support:design:26.1.0'

}

Then synchronize your project with the gradle files.

    
answered by 06.03.2018 в 16:17