Activity使用主題不兼容報錯-You need to use a Theme.AppCompat theme (or descendant) with this activity

今天在Activity界面彈出 一個AlertDialog時彈出以下錯誤: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 完整的log如下: 這是由於我的AlertDialog使用的android.support.v7.app.
相關文章
相關標籤/搜索