
I\'m trying to add CardView to my activity as the official sample. But it does
With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX
And the support library will be discontinued...
Add the following to buld.gradle:app
dependencies {
...
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
...
}