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.
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.