关于标题栏报错的问题

在设置标题栏的时候报错java.lang.RuntimeException: Unable to start activity ComponentInfo{com.feemung.binarycalculator/com.feemung.binarycalculator.ui.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

将MainActivity的继承ActionBarActivity更改为Activity就不会报错了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章