Tags
Android
Asked 3 years ago
4 Oct 2021
Views 899
George

George posted

Android - CardView missing in the Androidx

Cannot resolve class android.support.v7.widget.CardView


      <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
                        xmlns:card_view="http://schemas.android.com/apk/res-auto"
                        android:id="@+id/card_griditem"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        card_view:cardCornerRadius="3dp"
                        card_view:cardElevation="4dp"
                        card_view:cardUseCompatPadding="true">
>
 </android.support.v7.widget.CardView>
dilip

dilip
answered Oct 4 '21 00:00


  <android.support.v7.widget.CardView 

replace with


  <androidx.cardview.widget.CardView


and also

 </android.support.v7.widget.CardView>



replace with

  <androidx.cardview.widget.CardView>
Post Answer