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

后端 未结 6 1656
醉梦人生
醉梦人生 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条回答
  •  天命终不由人
    2021-02-07 10:18

    in your style.xml file add below code-

    style.xml

    
    
        
    
    

    also define theme like this in your activity

     
    

    OR

    
    

    clean project and run again..

提交回复
热议问题