您的位置:首页 > 移动开发 > Android开发

Android开发报错:AppCompat does not support the current theme features

2016-06-29 16:30 716 查看
使用ActionBarActivity + Toolbar的时候,之前这么定义
<style name="AppTheme.Base" parent="Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>

当依赖框架com.android.support:appcompat-v7升级之后就出问题了。改为如下写法问题解决:

<style name="AppTheme.Base" parent="Theme.AppCompat.Light">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>

或使用sdk预置的主题:

<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
</style>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android开发