I\'m trying to add CardView to my activity as the official sample. But it does
In your xml file change android.support.v7.widget.CardView to androidx.cardview.widget.CardView