With CardView as root layout in xml file (for custom view), I get an error from android studioMissing styles. Is the right theme chosen for this layout? Use the Theme combo box above the layout to select a different layout or fix links to the theme style. Could not find style with id 0x7fff000e in current theme.I tried to choose different themes for the layout, no one worked. I am using the new appCompatActivity in my application. excellent with the old ActionBarActivity.
Adding the elements below in AppTheme helped me solve a similar problem
<item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary_dark</item> <item name="colorAccent">@color/accent</item>
I think this ate a little for your question, but just in case someone needs this:
Mine was resolved after restarting Android Studio using the following option:
File -> Invalid Cache / Restart ...