I just upgraded to Android Studio 1.4. I created a new project with the target SDK installed in Marshmellow. When I create a new activity in the navigation box, I can simply start the operation on the virtual device. However, none of the XML layouts appear in the preview area.
Here are the errors: activity_main.xml:
Display Issues There are no 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. NOTE. One or more layouts lacks the layout_width or layout_height attributes. They are required in most layouts. Or: Automatically add all missing attributes. The following classes cannot be created: - 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 if shown in the IDE exception details. Android.content.res.Resources $ NotFoundException: Could not find resource match value bool 0x7F090006 (resolved name:abc_config_showMenuShortcutsWhenKeyboardPresent) in the current configuration. on android.content.res.BridgeResources.throwException (BridgeResources.java:841) on android.content.res.BridgeResources.getBoolean (BridgeResources.java:610) on android.support.v7.internal.view.menu.MenuBuilder.setShortcutsVisibleInner (MenuBuilder.java:790) on android.support.v7.internal.view.menu.MenuBuilder. (MenuBuilder.java:227) on android.support.design.internal.NavigationMenu. (NavigationMenu.java:34) on android. support.design.widget.NavigationView. (NavigationView.java:99) in the android.support.design.widget.NavigationView file. (NavigationView.java:92) in java.lang.reflect.Constructor.newInstance (Constructor.java:422) on android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:704) on android.view.LayoutInflater.rInflate_Original. java:835) on android.view.LayoutInflater_Delegate.rInflate (LayoutInflater_Delegate.java:70) on android.view. LayoutInflater.rInflate (LayoutInflater.java:811) on android.view.LayoutInflater.rInfla teChildren (LayoutInflater.java:798) on android.view.LayoutInflater.inflate (LayoutInflater.java UP15) on android.view.LayoutInflater.infl LayoutInflater.javaGR94) Copy stack to clipboard Could not find "toolbarStyle" style in current theme (8 similar errors not shown)394) Copy stack to clipboard Could not find "toolbarStyle" style in current theme (8 similar errors not shown)394) Copy stack to clipboard Could not find "toolbarStyle" style in current theme (8 similar errors not shown)
app_bar_main.xml:
. ? , . . layout_width layout_height. . : "toolbarStyle" (8 )
content_main.xml:
. ? , . . layout_width layout_height. . : "toolbarStyle" (8 )
nav_header_main.xml:
. ? , . @style/ThemeOverlay.AppCompat.Dark(3 ) textViewStyle (2 )
, styles.xml:
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
Android, , : (
, , . .