**Description:** java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.AppCompat (or a descendant). **Expected behavior:** shouldn't crash **Source code:** MaterialAlertDialogBuilder(activity) .setTitle(R.string.logout_title) .setMessage(R.string.logout_message) .setPositiveButton(R.string.logout_positive_btn_label, null) .setNegativeButton(R.string.logout_negative_btn_label, null) .create() **Theme:**<style name="Theme.MyApp" parent="Base.Theme.MyApp" /> <item name="materialAlertDialogTheme">@style/ThemeOverlay.App.MaterialAlertDialog</item> **Android API version:** 29 **Material Library version:** com.google.android.material:material:1.2.0-alpha06 **Device:** Nokia 6.1 plus To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library. We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).