I want to create card item xml layout for CardView
and getting this error. Common solutions here not worked (tried them all and others from similar posts).
I also faced the same error, what i did is i made the layout theme similar to the theme i am having in manifest.xml and it worked for me.
I face a similar issue what I did was click on Refresh button.
If the problem still persists try Invalidate Caches and restart
I was also facing the same issue. Please restart Android Studio by selecting the menu option "File" → "Invalidate Caches / Restart". For more details please follow the link:
http://www.unknownerror.org/opensource/harvesthq/chosen/q/stackoverflow/13439486/missing-styles-is-the-correct-theme-chosen-for-this-layout
You can solve this problem by changing current theme to suitable themes. Every theme is not suitable for every type of view. By using theme combobox we can solve this.
Here is the problem
1. Firstly go theme bar and press it
2. Change your theme like in the picture below
Now you changed your theme. If selected theme is suitable with your view it will render.