【已解决】找不到android.support.v7.internal.app.WindowDecorActionbar
来源:互联网 发布:工作流管理系统源码 编辑:程序博客网 时间:2024/05/22 11:54
问题描述:
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
注意事项
- 推荐用Toolbar代替ActionBar
0 0
- 【已解决】找不到android.support.v7.internal.app.WindowDecorActionbar
- [已解决]The following classes could not be found: 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 foundandroid.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
- 解决找不到android.support.v7.app.AppCompatActivity的类文件
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 找不到类 android...app.WindowDecorActionBar
- 解决javah生成.h头文件找不到找不到android.support.v7.app.AppCompatActivity的问题
- android.support.v7.internal.app.WindowDecorAction问题记录
- 解决找不到android.support.v7.app.ActionBarActivity的类文件 问题
- ZOJ 1860:Dog & Gopher
- ___19__C#手动编写Stack类,模拟栈的数据操作
- 如何防止android app被kill
- POJ 1065:Wooden Sticks
- Unicon字符串转成汉字String
- 【已解决】找不到android.support.v7.internal.app.WindowDecorActionbar
- callBackName cannot be found&fullPathForFilename: No file found at replay.png. 解决方案
- 优化Myeclipse启动速度
- 小C公众帮 获取微信公众号粉丝openid
- 恭贺新春,猴年大吉!
- 自定义tabbar(纯代码)
- fedora 23问题、fedoa 22 virtualbox 5.0安装
- ZOJ 1025:Wooden Sticks
- 继续挖坑之 NW.js (一) 介绍