
I\'m trying to add CardView to my activity as the official sample. But it does
I was facing this issue because of the corruption of cached cardview aar.
Gradle was picking local cached version of cardview. Also works by changing the library version but make sure you are not overriding configurations.all
Solution:
Close Android Studio,
In windows goto C:\Users\Qamar\.gradle\caches and search cardview delete your version folder, clean and rebuild.
Using: Android Studio 3.3 and gradle:3.2.1