material-components-android-examples icon indicating copy to clipboard operation
material-components-android-examples copied to clipboard

MaterialThemeBuilder crash

Open Dkhusainov opened this issue 4 years ago • 0 comments

material-components: 1.3.0

Reproduce:

  1. Checkout repo
  2. Put this line <item name="android:textColorSecondary">#FA0632</item> in app theme
  3. Launch app, go to components, scroll to bottom
    android.view.InflateException: Binary XML file line #37 in io.material.materialthemebuilder:layout/component_bottom_navigation: Binary XML file line #37 in io.material.materialthemebuilder:layout/component_bottom_navigation: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
    Caused by: android.view.InflateException: Binary XML file line #37 in io.material.materialthemebuilder:layout/component_bottom_navigation: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
    Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Constructor.newInstance0(Native Method)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
        at android.view.LayoutInflater.createView(LayoutInflater.java:854)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1006)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1084)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:682)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
        at io.material.materialthemebuilder.ui.component.ComponentViewHolder$Companion.inflate(ComponentViewHolder.kt:215)
        at io.material.materialthemebuilder.ui.component.ComponentViewHolder$Companion.access$inflate(ComponentViewHolder.kt:187)

Dkhusainov avatar Feb 19 '21 00:02 Dkhusainov