IllegalArgumentException: AppCompat does not support the current theme feature

来源:互联网 发布:java国际象棋棋盘棋子 编辑:程序博客网 时间:2024/04/28 21:11

AndroidStudio 导入开源项目运行出现这样一个异常:

IllegalArgumentException: AppCompat does not support the current theme feature,意思是appcompat 不支持当前的主题。

 

后来在stackoverflow上找到了解决方法:

   

Make sure that your theme is parent with Theme.AppCompat.NoActionBar, then in styles.xml:

(在styles.xml文件中,要确保你的主题的父类是Theme.AppCompat.NoActionBar),如:

<style name="MyMaterialTheme" parent="Theme.AppCompat.NoActionBar">        <item name="windowNoTitle">true</item>        <item name="windowActionBar">false</item>        ...</style>

Btw, it's a new issue for Support Library 22.1


原文链接:http://stackoverflow.com/questions/29784124/java-lang-illegalargumentexception-appcompat-does-not-support-the-current-theme



0 0
原创粉丝点击