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

来源:互联网 发布:mac磁盘权限修复 编辑:程序博客网 时间:2024/05/01 06:15
Rendering Problemsthe following classes could not be found:android.support.v7.internal.widget.ActionBarOverlayLayout (Fix Build Path, Edit XML, Create Class)  Tip: Try to build the project解决方法:

把你的style文件中theme改一下

在Theme.AppCompat.Light.DarkActionBar前面加上Base.  如下

<!-- Base application theme. --><style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">    <!-- Customize your theme here. --></style>
0 1