升级到AppCompat v22.1.0,现在获取IllegalArgumentException:AppCompat不支持当前主题特性我刚刚升级了我的应用程序,以使用新发布的v22.1.0AppCompat,现在打开我的应用程序时,我得到了下面的异常。Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:360)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:246)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)我该怎么解决呢?
3 回答

DIEA
TA贡献1820条经验 获得超2个赞
windowNoTitle
Theme.AppCompat.NoActionBar
<style name="MyTheme" parent="Theme.AppCompat"> ...</style><style name="MyTheme.NoActionBar"> <!-- Both of these are needed --> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item></style>

白衣非少年
TA贡献1155条经验 获得超0个赞
Theme.AppCompat.Light.NoActionBar
<item name="windowActionBar">false</item>
添加回答
举报
0/150
提交
取消