今天碰到了这么一个问题, Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
不知道什么原因,在Manifest文件中该对应Activity加上
android:theme="@style/AppTheme"就好了,搞不清楚什么原因,根据日志,大意是父类用了AppTheme这个主题,这个子类Activity也必须是这个Theme,否则加载这个Activity的时候不知道用父类的Theme还是用子类的Theme。