You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
Posted on 2016-03-26 06:37 hehoge 阅读(189) 评论(0) 编辑 收藏 举报报错如下:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test2/com.example.test2.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
解决方法:
创建的activity是MainActivity extends ActionBarActivity这样的。把后面的ActionBarActivity改成Activity,然后导包