import androidx.cardview.widget.cardview code example Example: androidx cardview dependencies { implementation "androidx.cardview:cardview:1.0.0" }