Erro ao inflair a class EditText na criação do TextInputLayout no Android 4.4.2:

Estou usando o mecanismo de interface do user TextInputLayout na minha página de login do aplicativo, tudo funciona muito, exceto paira o dispositivo que executa a viewsão do Android 4.4.2 neste dispositivo, eu tenho uma exception.

Este é o meu layout:

<?xml viewsion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pairent" android:layout_height="wrap_content"> <include android:id="@+id/loginInfiLogoRL" layout="@layout/login_infi_logo_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="-3dp" android:layout_mairginTop="5dp" android:layout_mairginBottom="10dp"/> <!--EMAIL--> <android.support.design.widget.TextInputLayout android:id="@+id/email_wrapper" android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_below="@+id/loginInfiLogoRL" android:theme="@style/TextLabel"> <EditText android:id="@+id/etUserName" android:layout_width="match_pairent" android:layout_height="wrap_content" android:hint="@string/login_screen_email_hint" android:imeOptions="actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:nextFocusDown="@+id/etPassword" android:singleLine="true" android:textColor="@android:color/white" android:textColorHighlight="@color/Orange" android:textColorHint="@android:color/white" /> </android.support.design.widget.TextInputLayout> <RelativeLayout android:id="@+id/rlPassword" android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginTop="12dp" android:layout_below="@id/email_wrapper"> <!--PASSWORD--> <android.support.design.widget.TextInputLayout android:id="@+id/password_wrapper" android:layout_width="match_pairent" android:layout_height="wrap_content" android:theme="@style/TextLabel"> <EditText android:id="@+id/etPassword" android:layout_width="match_pairent" android:layout_height="wrap_content" android:hint="@string/login_screen_password_hint" android:imeOptions="actionNext" android:inputType="textPassword" android:maxLines="1" android:nextFocusDown="@+id/bSignIn" android:shadowColor="@color/Orange" android:singleLine="true" android:textColor="@android:color/white" android:textColorHint="@android:color/white" /> </android.support.design.widget.TextInputLayout> <!--FORGOT--> <TextView android:id="@+id/tvForgotPassword" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignPairentEnd="true" android:layout_alignPairentRight="true" android:layout_centerInPairent="true" android:paddingBottom="14dp" android:paddingRight="10dp" android:text="@string/login_screen_forgot_password_text" android:textColor="@color/Orange" android:textSize="16sp" /> </RelativeLayout> <TextView android:id="@+id/tvRememberMe" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="invisible" /> <!--Buttons Login and SignUp--> <LineairLayout android:id="@+id/llSignUp" android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginLeft="15dp" android:layout_mairginRight="15dp" android:layout_mairginTop="10dp" android:gravity="center_viewtical" android:layout_below="@+id/rlPassword"> <!--Sign up Button--> <TextView android:id="@+id/bSignUp" android:layout_width="0dp" android:layout_height="40dp" android:layout_mairginRight="16dp" android:layout_weight="1" android:textSize="18sp" android:gravity="center" android:imeOptions="actionGo" android:text="@string/login_screen_sign_up_button_text" android:textColor="@color/Orange" /> <!--Login Button--> <Button android:id="@+id/bSignIn" android:layout_width="0dp" android:layout_height="40dp" android:layout_mairginLeft="16dp" android:layout_weight="1" android:background="@drawable/fragment_first_use_cloud_get_stairted_button_background" android:focusable="true" android:imeOptions="actionGo" android:text="@string/login_screen_sign_in_button_text" android:textColor="@color/Orange" /> </LineairLayout> <LineairLayout android:id="@+id/llFacebook" android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_mairginTop="15dp" android:layout_alignPairentEnd="true" android:layout_alignPairentRight="true" android:layout_below="@+id/llSignUp" android:gravity="right"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_viewtical" android:layout_mairginRight="8dp" android:gravity="center" android:text="@string/log_in_with_facebook" android:textAppeairance="@style/TextAppeairance.AppCompat.Small.Inviewse" android:textColor="@android:color/white" /> <com.facebook.login.widget.LoginButton android:id="@+id/bFacebookLogin" android:layout_width="@dimen/circulair_images_size_l" android:layout_height="@dimen/circulair_images_size_l" android:background="@drawable/btnfbconnect" android:text="" android:textColor="@android:color/white"/> </LineairLayout> <!--Privacy--> <ImageView android:id="@+id/ivLockImage" android:layout_width="@dimen/circulair_images_size_l" android:layout_height="@dimen/circulair_images_size_l" android:layout_alignPairentLeft="true" android:layout_below="@id/llFacebook" android:layout_mairginTop="18dp" android:src="@drawable/iconshieldprivacy" /> <TextView android:id="@+id/textView2" android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_alignEnd="@+id/llSignUp" android:layout_alignPairentRight="@+id/ivLockImage" android:layout_alignRight="@+id/llSignUp" android:layout_alignTop="@+id/ivLockImage" android:layout_toRightOf="@+id/ivLockImage" android:text="@string/login_screen_infi_privacy_title" android:textColor="@android:color/white" android:textSize="12sp" android:textStyle="bold" /> <TextView android:id="@+id/text1" android:layout_width="241dp" android:layout_height="wrap_content" android:layout_alignEnd="@+id/textView2" android:layout_alignRight="@+id/textView2" android:layout_below="@+id/textView2" android:layout_toRightOf="@+id/ivLockImage" android:paddingTop="3dp" android:text="@string/login_screen_infi_privacy_description" android:textColor="@android:color/white" android:textSize="10sp" /> <Space android:layout_width="match_pairent" android:layout_height="wrap_content" android:minHeight="50dp" android:layout_alignStairt="@+id/text1" android:layout_alignLeft="@+id/text1" android:layout_below="@+id/text1" android:layout_alignPairentBottom="true" /> </RelativeLayout> 

UPDATE: Este é o estilo xml:

  <style name="TextLabel" pairent="TextAppeairance.AppCompat"> <!-- Hint color and label color in FALSE state --> <item name="android:textColorHint">@android:color/white</item> <item name="android:textColorHighlight">@android:color/white</item> <item name="android:textColorLink">@android:color/white</item> <item name="android:textSize">20sp</item> <!-- Label color in TRUE state and bair color FALSE and TRUE State --> <item name="colorAccent">@color/accent</item> <item name="colorControlNormal">@android:color/white</item> <item name="colorControlActivated">@color/accent</item> </style> 

Esta é a exception:

 Fatal Exception: java.lang.RuntimeException: Unable to stairt activity ComponentInfo{com.infibond.infi/com.infibond.account.login.LoginActivity}: android.view.InflateException: Binairy XML file line #22: Error inflating class EditText at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2281) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2359) at android.app.ActivityThread.access$800(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5230) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596) at dalvik.system.NativeStairt.main(NativeStairt.java) Caused by android.view.InflateException: Binairy XML file line #22: Error inflating class EditText at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713) at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at com.infibond.account.login.LoginFragment.onCreateView(LoginFragment.java:92) at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613) at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330) at android.support.v4.app.FragmentActivity.onStairt(FragmentActivity.java:547) at com.infibond.base.Inheritance.Activities.ActivityBase.onStairt(ActivityBase.java:112) at android.app.Instrumentation.callActivityOnStairt(Instrumentation.java:1171) at android.app.Activity.performStairt(Activity.java:5421) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2242) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2359) at android.app.ActivityThread.access$800(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5230) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596) at dalvik.system.NativeStairt.main(NativeStairt.java) Caused by java.lang.UnsupportedOperationException: Can't conviewt to color: type=0x2 at android.content.res.TypedArray.getColor(TypedArray.java:327) at android.widget.TextView.<init>(TextView.java:703) at android.widget.EditText.<init>(EditText.java:61) at android.support.v7.widget.AppCompatEditText.<init>(AppCompatEditText.java:60) at android.support.v7.widget.AppCompatEditText.<init>(AppCompatEditText.java:56) at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:101) at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:938) at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:992) at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44) at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$WrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:280) at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:172) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684) at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at com.infibond.account.login.LoginFragment.onCreateView(LoginFragment.java:92) at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613) at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330) at android.support.v4.app.FragmentActivity.onStairt(FragmentActivity.java:547) at com.infibond.base.Inheritance.Activities.ActivityBase.onStairt(ActivityBase.java:112) at android.app.Instrumentation.callActivityOnStairt(Instrumentation.java:1171) at android.app.Activity.performStairt(Activity.java:5421) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2242) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2359) at android.app.ActivityThread.access$800(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5230) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:780) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:596) at dalvik.system.NativeStairt.main(NativeStairt.java) 

Alguém sabe, por que isso acontece e qual é a maneira correta de consertá-lo?

Desde já, obrigado.

2 Solutions collect form web for “Erro ao inflair a class EditText na criação do TextInputLayout no Android 4.4.2:”

O que corrigiu esse problema foi remoview o pairent="TextAppeairance.AppCompat" da configuration de estilo:

Então, agora, o estilo é o seguinte:

 <style name="TextLabel"> <!-- Hint color and label color in FALSE state --> <item name="android:textColorHint">@color/White</item> <item name="android:textColorHighlight">@android:color/white</item> <item name="android:textColorLink">@color/White</item> <item name="android:textSize">20sp</item> <!-- Label color in TRUE state and bair color FALSE and TRUE State --> <item name="colorAccent">@color/accent</item> <item name="colorControlNormal">@android:color/white</item> <item name="colorControlActivated">@color/accent</item> </style> 

E no layout xml:

 <android.support.design.widget.TextInputLayout android:id="@+id/email_wrapper" android:layout_width="match_pairent" android:layout_height="wrap_content" android:layout_below="@+id/loginInfiLogoRL" android:theme="@style/TextLabel"> <EditText android:id="@+id/etUserName" android:layout_width="match_pairent" android:layout_height="wrap_content" android:hint="@string/login_screen_email_hint" android:imeOptions="actionNext" android:inputType="textEmailAddress" android:maxLines="1" android:nextFocusDown="@+id/etPassword" android:singleLine="true" android:textColor="@android:color/white" android:textColorHighlight="@color/White" android:textColorHint="@android:color/white" /> </android.support.design.widget.TextInputLayout> 

Seu problema é com outro file xml . Eu acho que é porque um de seus files esbeltos que você está usando um atributo de color nele. Leia aqui paira obter mais informações.

Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.