android.support.v7.internal.widget.ActionBarOverlayLayout could not be instantiated

来源:互联网 发布:站台气候数据 编辑:程序博客网 时间:2024/04/29 12:00

更新studio之后遇到这个问题,这个问题的原因是studio的values目录下的style.xml错误造成的。

错误的style.xml文件如下:

   

<resources>    <!-- Base application theme. -->    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">        <!-- Customize your theme here. -->    </style>    </resources>
正确的style.xml文件如下:
<resources>    <!-- Base application theme. -->    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">        <!-- Customize your theme here. -->    </style>    </resources>
改完之后就ok了~

0 0
原创粉丝点击