oktavianto / ionalert

Apache License 2.0
25 stars 5 forks source link

Error with theme "Theme.MaterialComponents.Light.NoActionBar" #2

Closed ashutosh-mulik closed 3 years ago

ashutosh-mulik commented 3 years ago

FATAL EXCEPTION: main java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:843) at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:693) at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95) at androidx.appcompat.app.AlertController.installContent(AlertController.java:232) at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279) at id.ionbit.ionalert.IonAlert.onCreate(IonAlert.java:99) at android.app.Dialog.dispatchOnCreate(Dialog.java:421) at android.app.Dialog.show(Dialog.java:315)

rahat14 commented 3 years ago

change the application theme to any material theme