How to fix: “You need to use a Theme.AppCompat theme (or descendant) with this activity”

后端 未结 4 1101
傲寒
傲寒 2020-11-28 09:36

I am having trouble running my Android app in a fullscreen mode per instructions of a video. When it tries to run, the app crashes with the error.

\"You need t

4条回答
  •  情深已故
    2020-11-28 10:18

    Used to face the same problem. The reason was in incorrect context passing to AlertDialog.Builder(here). use like AlertDialog.Builder(Homeactivity.this)

提交回复
热议问题