android studio布局预览报The following classes could not be found错的问题
来源:互联网 发布:windows sdk for win7 编辑:程序博客网 时间:2024/06/04 17:56
本文转自:http://my.oschina.net/u/2425146/blog/546649?p=1
刚刚进入studio 的小伙伴们遇到很多问题吧,这个是我曾经遇到的问题,希望能帮助大家,如果觉的有帮助您记得给个赞哦
Rendering Problems
The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Create Class)
Tip: Try to build the project.
解决办法:
这个问题的原因是studio成长中,Actionbar已经out了,它推荐你使用的是toolbar
解决方法1:
找到项目目录res/values/sttyles.xml,准备修改其中的AppTheme设置。
找到属性parent="Theme.AppCompat.Light.DarkActionBar改成parent="Base.Theme.AppCompat.Light.DarkActionBar",就是在原parent属性值上加“Base.”前缀。
修改成之后的截图:
ok啦 在返回你的布局文件时候 问题就没啦
解决方法2:更改下api版本 如图 换个低版本的api就可以了
解决方法3:跟方法一类似 ,只是把parent的值改成其他的,改成Theme.AppCompat.Light.NoActionBar
0 0
- android studio布局预览报The following classes could not be found错的问题
- Android Studio布局预览出现rendering problems,the following classes could not be instantiated情况解决办法
- Android 布局文件添加edittext报:The following classes could not be found错误
- 解决Android Studio默认AppTheme主题找不到的问题 The following classes could not be found: - android.support.v
- 【常见错误】布局文件添加edittext报:The following classes could not be found错误
- 关于解决android studio的"rendering problems The following classes could not be found android.support.v7
- Android Studio 编译布局文件错误之:Rendering Problems The following classes could not be instantiated
- 『Android/Java』Android Studio XML Editor Preview Error:The following classes could not be found
- Rendering Problems The following classes could not be found
- The following classes could not be found: - ImageView (Change to android.widget.ImageView, Fix Build
- The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayou
- The following classes could not be found - EditText (Change to android.widget.EditText, Fix Build Pa
- The following classes could not be found: android.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayou
- The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayou
- The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar (Fi
- hibernate reverse engineering 中没有java src folder 的解决办法
- tu
- POJ 2826 An Easy Problem?! (计算几何、线段相交、思维)
- 工厂模式
- 剑指-二叉树镜像
- android studio布局预览报The following classes could not be found错的问题
- 《现代操作系统》笔记
- 地图加载和图层简介
- 第一篇博客
- 04 Spinner 列表选中
- jquery操作select
- css3弹性盒子如何布局
- [SCOI2005]扫雷Mine
- 火星人学node(基础篇)---nodejs的模块系统(实例分析exprots和module.exprots)