I want to use CardView in my project, but when I run my application, I get the following error. I\'m using Eclipse
.
Error: Error inflating clas
Disable the androidx from gradle.properties file using true --> false
android.useAndroidX=false
android.enableJetifier=false
then change these lines to api v28 in build.gradle(Module:app)
compileSdkVersion 28
targetSdkVersion 28
then add these line in to build.gradle(Module:app)
`implementation 'com.android.support:appcompat-v7:28.0.0'`
`implementation 'com.android.support:recyclerview-v7:28.0.0'`
`implementation 'com.android.support:cardview-v7:28.0.0'`
`implementation 'com.android.support:design:28.0.0'`
Then sync
the project