Android Studio: Rendering Problems Missing styles-correct theme chosen for this layout, Failed to find style with id

前端 未结 4 2033
猫巷女王i
猫巷女王i 2020-12-15 21:23

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).

相关标签:
4条回答
  • 2020-12-15 21:40

    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.

    0 讨论(0)
  • 2020-12-15 21:52

    I face a similar issue what I did was click on Refresh button.

    If the problem still persists try Invalidate Caches and restart

    0 讨论(0)
  • 2020-12-15 21:58

    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

    0 讨论(0)
  • 2020-12-15 22:02

    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.

    0 讨论(0)
提交回复
热议问题