segui os passos, no entanto quando eu vou adicionar o cardElevation e o cardUseCompatPadding o layout não compila e mostra essa msg de erro:
Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
NOTE: This project contains resource errors, so aapt did not succeed, which can cause rendering failures. Fix resource problems first.
The following classes could not be instantiated:
- android.support.v7.widget.CardView
(Open Class, Show Exception, Clear Cache)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
Exception Details
java.lang.NoClassDefFoundError: android/support/v7/cardview/R$colorat android.support.v7.widget.CardView.initialize(CardView.java:232) at android.support.v7.widget.CardView.(CardView.java:116)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.inflate(LayoutInflater.java:495)at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
Copy stack to clipboard
Failed to find style with id 0x7fff0067 in current theme