title: Android Studio 1.4 Rendering Problems In New Drawer Template
body: <p>I have just updated to Android Studio 1.4. I have created a new project with the target SDK set to Marshmellow. When I create a new Navigation Drawer Activity, I can run the activity on a virtual device just fine. However none of the XML layouts display in the preview pane.</p>
  
  <p>Here are the errors:
  activity_main.xml:</p>
  
  <blockquote>
    <p>Rendering Problems 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: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts.  Or: Automatically add all missing attributes   The following classes could not be instantiated:
    - android.support.design.widget.NavigationView (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 android.content.res.Resources$NotFoundException: Could not find bool resource matching value 0x7F090006 (resolved name: abc_config_showMenuShortcutsWhenKeyboardPresent) in current configuration.   at android.content.res.BridgeResources.throwException(BridgeResources.java:841)   at android.content.res.BridgeResources.getBoolean(BridgeResources.java:610)   at android.support.v7.internal.view.menu.MenuBuilder.setShortcutsVisibleInner(MenuBuilder.java:790)   at android.support.v7.internal.view.menu.MenuBuilder.(MenuBuilder.java:227)   at android.support.design.internal.NavigationMenu.(NavigationMenu.java:34)   at android.support.design.widget.NavigationView.(NavigationView.java:99)   at android.support.design.widget.NavigationView.(NavigationView.java:92)   at java.lang.reflect.Constructor.newInstance(Constructor.java:422)   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:835)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:811)   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)   at android.view.LayoutInflater.inflate(LayoutInflater.java:515)   at android.view.LayoutInflater.inflate(LayoutInflater.java:394) Copy stack to clipboard  Failed to find style 'toolbarStyle' in current theme (8 similar errors not shown) </p>
  </blockquote>
  
  <p>app_bar_main.xml:</p>
  
  <blockquote>
    <p>Rendering Problems 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: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts.  Or: Automatically add all missing attributes   Failed to find style 'toolbarStyle' in current theme (8 similar errors not shown) </p>
  </blockquote>
  
  <p>content_main.xml:</p>
  
  <blockquote>
    <p>Rendering Problems 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: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts.  Or: Automatically add all missing attributes   Failed to find style 'toolbarStyle' in current theme (8 similar errors not shown) </p>
  </blockquote>
  
  <p>nav_header_main.xml: </p>
  
  <blockquote>
    <p>Rendering Problems 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.  Couldn't resolve resource @style/ThemeOverlay.AppCompat.Dark (3 similar errors not shown) Failed to find style 'textViewStyle' in current theme (2 similar errors not shown) </p>
  </blockquote>
  
  <p>Since its mentioning missing styles, here's my styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
  
  &lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="AppTheme.NoActionBar"&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;
  &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm new to Android development and when the default templates are throwing errors at you like this, it isn't the best way to be introduced to a new framework :(</p>
  
  <p>Even an explanation as to what is going wrong would help. Thanks.</p>