How can I fix this error: You need to use a Theme.AppCompat theme (or descendant) with this activity

后端 未结 6 1563
醉梦人生
醉梦人生 2021-02-07 09:36

I searched all internet web sites to fix this error, but I couldn\'t. I just want to create AlertDialog with two button Yes and No.

This is my code:

impo         


        
6条回答
  •  -上瘾入骨i
    2021-02-07 09:59

    If anybody experiences this issue with activities, try to explicitly configure a theme to your activity.

    
    

提交回复
热议问题