The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverl

The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverlayLayout

java.lang.NoClassDefFoundError: Could not initialize class android.support.v7.internal.widget.ActionBarOverlayLayout
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:413)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)
at com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:177)

.......................................

解决办法:

       打开文件res/values/styles.xml,

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">    style>
       修改为
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">    style>

你可能感兴趣的:(android,stdio常见错误)