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

后端 未结 6 1558
醉梦人生
醉梦人生 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:07

    Try adding following to your proguard-rules:

    -keep public class com.google.android.gms.**
    -keep class android.support.v7.** { *; }
    -keep interface android.support.v7.** { *; }
    
    -dontwarn com.google.android.gms.**
    

    If you are using

    com.google.android.gms:play-services-ads:8.1.0

    Have a look at Google Issue 190237

提交回复
热议问题