android studio无法在可视化页面预览布局文件

有时在android studio中无法在可视化页面预览布局文件,出现“android.support.v7.internal.widget.ActionBarOverlayLayout ”,如下图所示:

出现这个问题只需要把你values目录下的style.xml文件修改下,在Theme.AppCompat.Light.DarkActionBar前面加上Base:

1 <!-- Base application theme. -->
2 <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
3 <!-- Customize your theme here. -->
4 </style>
原文地址:https://www.cnblogs.com/gxchexi/p/4543533.html