title: Android Studio: Rendering Problems Missing styles-correct theme chosen for this layout, Failed to find style with id
body: <p>I want to create card item xml layout for <code>CardView</code> and getting this error. <a href="https://stackoverflow.com/questions/13439486/missing-styles-is-the-correct-theme-chosen-for-this-layout">Common solutions here</a> not worked (tried them all and others from similar posts). </p>
  
  <p>This is my <code>xml</code>:</p>
  
  <pre><code>&lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.v7.widget.CardView
          xmlns:card_view="http://schemas.android.com/apk/res-auto"
          android:id="@+id/card_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          card_view:cardCornerRadius="3dp"
          card_view:cardElevation="4dp"&gt;
  
  
      &lt;/android.support.v7.widget.CardView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is the relevant part of <code>styles.xml</code>:</p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/primary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/primary_dark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/primary_accent&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;!--Theme for Tool Bar (Action Bar)--&gt;
  &lt;style name="ToolBarTheme" parent="ThemeOverlay.AppCompat.ActionBar"&gt;
      &lt;item name="android:textColorPrimary"&gt;@color/white&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This is the relevant part from the <code>Manifest</code>:</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  </code></pre>
  
  <p>This is the relevant part from <code>gradle build</code> script:</p>
  
  <pre><code>compile 'com.android.support:appcompat-v7:23.0.1'
  compile 'com.google.android.gms:play-services:8.1.0'
  compile 'com.android.support:design:23.0.1'
  compile 'com.android.support:cardview-v7:23.0.1'
  compile 'com.android.support:recyclerview-v7:23.0.1'
  </code></pre>
  
  <p>And this is the error:</p>
  
  <p><a href="https://i.stack.imgur.com/5FeEy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5FeEy.png" alt="enter image description here"></a></p>
  
  <p>Thanks,</p>