创作后不久,我决定查看预览.我进去了,我看到了这个:
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(Constructor.java:408) at
android.view.LayoutInflater.inflate(LayoutInflater.java:482) at
android.view.LayoutInflater.inflate(LayoutInflater.java:414) at
com.android.layoutlib.bridge.bars.BridgeActionBar.(BridgeActionBar.java:84)
at
com.android.layoutlib.bridge.bars.AppCompatActionBar.(AppCompatActionBar.java:56)
Copy stack to clipboard
我以前从未见过它,我以前从未见过它.
任何人都知道如何解决这个问题?
编辑:
有人推荐我this位置,但它没有工作.它只给我带来了NullPointerExceptions.
我尝试重建项目,但它没有用.