title: Error inflating class com.google.android.material.textfield.TextInputLayout
body: <p>This is my app theme:
  <code>&lt;style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"&gt;</code> </p>
  
  <p>I got an inflate error caused by a not using a desired theme. In the <code>Manifest</code> I didn't overwrite the theme for the activity that I got this error, so the AppTheme definded in <code>styles.xml</code> is used.</p>
  
  <p>Error:</p>
  
  <pre><code> android.view.InflateException: Binary XML file line #122: Binary XML file line #122: Error inflating class com.google.android.material.textfield.TextInputLayout
      Caused by: android.view.InflateException: Binary XML file line #122: Error inflating class com.google.android.material.textfield.TextInputLayout
      Caused by: java.lang.reflect.InvocationTargetException
          at java.lang.reflect.Constructor.newInstance0(Native Method)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
          at android.view.LayoutInflater.createView(LayoutInflater.java:647)
        ...
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
       Caused by: java.lang.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:240)
          at com.google.android.material.internal.ThemeEnforcement.checkMaterialTheme(ThemeEnforcement.java:215)
          at com.google.android.material.internal.ThemeEnforcement.checkCompatibleTheme(ThemeEnforcement.java:143)
          at com.google.android.material.internal.ThemeEnforcement.obtainTintedStyledAttributes(ThemeEnforcement.java:116)
  </code></pre>
  
  <p>And this is my xml:</p>
  
  <pre><code>  &lt;com.google.android.material.textfield.TextInputLayout
                          android:id="@+id/inputFirstName"
                          style="@style/EditText.OutlinedBox"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_marginStart="16dp"
                          android:layout_marginTop="10dp"
                          android:layout_marginEnd="16dp"
                          android:visibility="gone"
                          app:boxStrokeColor="@color/colorBrand"
                          app:layout_constraintEnd_toEndOf="parent"
                          app:layout_constraintStart_toStartOf="parent"&gt;
  </code></pre>
  
  <p>and the EditText style:</p>
  
  <pre><code> &lt;style name="EditText.OutlinedBox" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox"&gt;
          &lt;item name="android:minHeight"&gt;56dp&lt;/item&gt;
          &lt;item name="android:textSize"&gt;18sp&lt;/item&gt;
          &lt;item name="android:fontFamily"&gt;@font/nunito_regular&lt;/item&gt;
          &lt;item name="android:textColorHint"&gt;@color/colorTextSecondary&lt;/item&gt;
          &lt;item name="hintTextColor"&gt;@color/colorBrand&lt;/item&gt;
          &lt;item name="hintEnabled"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>target sdk of the app is 29 and I use <code>material_design_components_version = '1.1.0-alpha08'</code></p>
  
  <p>EDIT:</p>
  
  <p>from <code>app/gradle</code></p>
  
  <pre><code>    implementation(
          "androidx.appcompat:appcompat:$appcompat_version",
          "androidx.constraintlayout:constraintlayout:$constraintlayout_version",
          "com.google.android.material:material:$material_design_components_version"
  )
  </code></pre>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;application
      android:name=".application.BaseApplication"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"
      android:usesCleartextTraffic="true"&gt;
  </code></pre>
  
  <p>Theme:</p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;item name="android:windowLightStatusBar"&gt;true&lt;/item&gt;
      &lt;item name="android:fontFamily"&gt;@font/nunito_regular&lt;/item&gt;
      &lt;item name="android:lineSpacingExtra"&gt;0dp&lt;/item&gt;
      &lt;item name="android:includeFontPadding"&gt;false&lt;/item&gt;
      &lt;item name="navigationIcon"&gt;@drawable/ic_back_dark&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@color/colorWhite&lt;/item&gt;
      &lt;item name="bottomSheetDialogTheme"&gt;@style/AppBottomSheetDialogTheme&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>