Rendering Problems
The following classes could not be instantiated
android.support.v7.internal.widget.ActionBarOverlayLayout (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 java.lang.NoClassDefFoundError: Could not initialize class android.support.v7.internal.widget.ActionBarOverlayLayout
at java.lang.reflect.Constructor.newInstance at android.view.LayoutInflater.inflate(LayoutInflater.java:482)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at com.android.layoutlib.bridge.bars.BridgeActionBar.<init>(BridgeActionBar.java:84)
at com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:56)
解决办法:
将styles.xml 中的
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
修改为:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
在theme前面加上了一个base,即可解决!