This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.

解决方式:

打开Style,设置为

<style name="AppTheme" parent="AppTheme.Base" />

<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="android:windowActionBar">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowNoTitle">true</item>
</style>

最新文章

  1. css总结(更新中...)
  2. Java中事务的概念
  3. Java工程图标前面的红色叹号
  4. android开发之画图版
  5. Oracle游标带参数
  6. JSP中使用的模式——JSP+Servlet+JavaBean
  7. php错误处理和php异常处理机制
  8. bootstrap datatable项目封装支持单选多选
  9. App如何选择移动广告平台,开发者2 - 移动变现模式分析
  10. Linux挂在ntfs格式的U盘
  11. 用过的一些Android设备调试特性注意点(挖坑帖)
  12. HttpClient4 TIME_WAIT和CLOSE_WAIT
  13. 手动搭建Docker本地私有镜像仓库
  14. CentOS7.5下安装Mycat连接MySQL8.0
  15. Android对接微信支付体验
  16. Visual Studio2013的安装过程及练习测试
  17. monit安装配置
  18. 排列组合或容斥原理 SPOJ - AMR11H
  19. bzoj千题计划225:bzoj2143: 飞飞侠
  20. js 模拟鼠标事件

热门文章

  1. Ubuntu下的用户和权限(三)
  2. 编写函数int count_number_string(char str[])和函数int maxnum_string(char str[])
  3. awesome-free-software
  4. Oracle SQL性能优化系列
  5. 【刷题笔记】LeetCode 222. Count Complete Tree Nodes
  6. 26.QT颜色与布局
  7. Java语言的优点
  8. 服务器未能识别http头soapaction的值
  9. ROS-SLAM-自主导航
  10. Asp.Net Core部署到Linux服务器