主题问题 You need to use a Theme.AppCompat theme (or descendant) with this activity. 解决方法https://blog.csdn.net/ouyang_peng/article/details/51334761