關於標題欄報錯的問題

在設置標題欄的時候報錯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就不會報錯了。

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