找不到类 android...app.WindowDecorActionBar
来源:互联网 发布:s函数可以用c语言写吗 编辑:程序博客网 时间:2024/05/29 13:28
问题描述:
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.
附:
在学习中遇到问题时,依照前辈们的告诫“不会的先自己查,实在不行再来找前辈”,而最快捷的查询方法,是上网,本条将有幸成为网络经验之一。
步骤阅读
工具/原料
- Android Studio
问题原因
Android版本升级,不推荐使用Actionbar,将被Toolbar代替。
END
解决办法一:parent="Base.Theme.AppCompat.Light.DarkActionBar"
找到项目目录res/values/sttyles.xml,准备修改其中的AppTheme设置。
步骤阅读找到属性parent="Theme.AppCompat.Light.DarkActionBar"
步骤阅读修改为parent="Base.Theme.AppCompat.Light.DarkActionBar",即在原parent属性值上加“Base.”前缀。
步骤阅读保存修改,回到问题提示的地方,现在是不是没有啦?
步骤阅读END
解决办法二: parent="Theme.AppCompat.Light.NoActionBar"
同样在styles.xml文件中,修改parent属性值为"Theme.AppCompat.Light.NoActionBar"
步骤阅读END
解决办法三:换个低版本的API
在问题提示页面,找到右上角的API选择按钮,可看到可选API列表。从中选择一个低版本的,如4.2.2
步骤阅读API切换成功后,可以看到不再显示问题。
不过,不推荐使用此法。
步骤阅读END
0 0
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 【已解决】找不到android.support.v7.internal.app.WindowDecorActionbar
- android.support.v7.internal.app.WindowDecorActionBar
- Android Studio启动提示 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.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.app.WindowDecorActionBar (Fi
- [已解决]The following classes could not be found: android.support.v7.internal.app.WindowDecorActionBar
- 找不到添加类。android.app.Fragment$InstantiationException:
- NDK中“找不到android.app.Activity的类文件"解决方法
- 找不到android.support.v7.app.AppCompatActivity的类文件
- 解决找不到android.support.v7.app.AppCompatActivity的类文件
- NDK中“找不到android.app.Activity的类文件"解决方法
- 链表逆置
- mysql数据库设置默认字符集
- tomcat中动态部署
- 20页聚焦Web设计
- HTML第一课
- 找不到类 android...app.WindowDecorActionBar
- Android 颜色对照表
- [Android 性能优化系列]布局篇之减少你的界面层级
- c 字符操作函数
- 12种排序算法详解
- hibernate Cacheable
- tomcat实现https登录
- 几种等等概率抽样方法
- 辗转相除法