The class has changed to:
androidx.cardview.widget.CardView
If you want to use the old class names, you need to add android:enableJetifier=true
to your gradle.properties
and use the appcompat dependencies instead.
More Related Contents:
- What is AndroidX?
- Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
- Proper implementation of ViewPager2 in Android
- What is Jetifier?
- Change Locale not work after migrate to Androidx
- Manifest merger failed : Attribute application@appComponentFactory – Androidx
- AndroidX:Appcompat I:art error android.view.View$OnUnhandledKeyEventListener
- in androidx.fragment.app.Fragment,setUserVisibleHint()is Deprecated,and not executed,why?
- Flutter Projects & Android X Migration Issues
- Error inflating class androidx.constraintlayout.ConstraintLayout after migration to androidx
- Android FAB icon always black with MaterialComponents theme
- How to set RecyclerView app:layoutManager=”” from XML?
- play-services-ads conflicts with appcompat
- SupportMapFragment does not support AndroidX Fragment
- Crash on Android 10 (InflateException in layout/abc_screen_simple line #17)
- Get current fragment with ViewPager2
- Android Work Manager: “Could not instantiate Worker”
- Error when adding buildFeatures in build.gradle file
- Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
- PreferenceFragmentCompat has padding on PreferenceCategory that I can’t get rid of
- Android app crashes by switching the activity
- Null pointer exception with “setDisplayHomeAsUpEnabled(boolean)” [duplicate]
- How do I pass an object from one activity to another on Android? [duplicate]
- Detect end of ScrollView
- Getting View’s coordinates relative to the root layout
- connect to sql server from android
- Android get previous activity
- How to find android TextView number of characters per line?
- How to change the border color(un-focused) of an EditText?
- How to create fixed footer in android layout?