woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class com.google.android.mate... #2830

Closed sentry-io[bot] closed 4 years ago

sentry-io[bot] commented 4 years ago

Sentry Issue: WOOCOMMERCE-ANDROID-W7

IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).
    at com.google.android.material.internal.ThemeEnforcement.checkTheme(ThemeEnforcement.java:248)
    at com.google.android.material.internal.ThemeEnforcement.checkMaterialTheme(ThemeEnforcement.java:222)
    at com.google.android.material.internal.ThemeEnforcement.checkCompatibleTheme(ThemeEnforcement.java:150)
    at com.google.android.material.internal.ThemeEnforcement.obtainStyledAttributes(ThemeEnforcement.java:81)
    at com.google.android.material.checkbox.MaterialCheckBox.<init>(MaterialCheckBox.java:70)
...
(80 additional frame(s) were not displayed)

InvocationTargetException: None
    at com.woocommerce.android.ui.products.categories.ProductCategoriesAdapter.onCreateViewHolder(ProductCategoriesAdapter.kt:35)
    at com.woocommerce.android.ui.products.categories.ProductCategoriesAdapter.onCreateViewHolder(ProductCategoriesAdapter.kt:18)
...
(74 additional frame(s) were not displayed)

InflateException: Binary XML file line #20: Error inflating class com.google.android.material.checkbox.MaterialCheckBox
InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class com.google.android.material.checkbox.MaterialCheckBox

Binary XML file line #20: Binary XML file line #20: Error inflating class com.google.android.material.checkbox.MaterialCheckBox
rachelmcr commented 4 years ago

A public beta tester reported a new crash that looks like it's this one:

App is crashing and auto exiting when just I click on Categories in a product edit page. Please check this

Device: Redmi Note 7 Pro WCAndroid version: 5.0-rc-1

We can reach out via the Google Play Console if it would help to gather any further details from this tester.

rachelmcr commented 4 years ago

I can also reproduce this and https://github.com/woocommerce/woocommerce-android/issues/2831 just by enabling Product Editing under Settings > Beta Features and then opening the Categories (or Tags, for the other crash) section in the product details.

anitaa1990 commented 4 years ago

Thanks @rachelmcr!! I'll take a look at it today 👍

anitaa1990 commented 4 years ago

Fixed in #2835