Failed to load AppCompat ActionBar with unknown error.
程序员文章站
2022-03-19 22:13:44
...
Android studio新建项目xml文件不显示问题解决方法
找到values文件夹下面的styles.xml打开
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
把DarkActionBar改为NoActionBar。再Rebuild Project即可
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
上一篇: 撬开比流量、黄金地段更赚钱的那堵墙
下一篇: 该怎么拒绝