ToolBar报错:AppCompat does not support the current theme features
来源:互联网 发布:tomcat修改端口号 编辑:程序博客网 时间:2024/05/16 01:45
一、问题
当使用actionbar并且又没有改变style的时候就会报如下错。
java:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // 注入 ButterKnife.inject(this); setSupportActionBar(toolbar); }
AndroidManifest:
android:theme="@style/AppTheme">
错误信息
Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false }
二、解决方法:
将主题设置成NoActionBar即可,如下:
@style/Theme.AppCompat.NoActionBar
0 0
- 使用ToolBar时的报错AppCompat does not support the current theme features
- ToolBar报错:AppCompat does not support the current theme features
- Android开发报错:AppCompat does not support the current theme features
- toolbar使用时显示AppCompat does not support the current theme features: { windowActionBar: false, windowA
- IllegalArgumentException: AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features:
- Android:AppCompat does not support the current theme features
- AppCompat does not support the current theme features的解决方法
- IllegalArgumentException: AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOver
- 【Android】java.lang.IllegalArgumentException: AppCompat does not support the current theme features
- style 实现全屏和AppCompat does not support the current theme features错误的解决
- IllegalArgumentException: AppCompat does not support the current theme feature
- HashMap在非线程安全下的死循环
- Lua学习笔记——进阶
- Hdu-5921 Binary Indexed Tree(数位DP)
- Lua学习笔记——C语言与Lua的交互
- 这是开始
- ToolBar报错:AppCompat does not support the current theme features
- 使用Java语言,使用System.in输入以下各个变量的值,并按照公式计算得出结果。 公式为: 4/3*(r+34)-9*(a+b*c)+(3+d*(2+a))/(a+b*d)
- Leetcode 78. Subsets
- poj3461 Oulipo
- 编写程序接收一个ASCII码(从0至128),然后显示输入ASCII码所代表的字符。 注意: (1)能够对1个或多个输入的ASCII码进行处理; (2)对于输入的非ASCII码进行判定和排除。
- TCP相关面试题总结
- 11.3.6
- poj2406 Power strings
- CF 526D Om Nom and Necklace