-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android.view.InflateException: Binary XML file line #0: Error inflating class android.widget.EditText #417
Comments
I`m having the same issue.. |
It seems this library does not work well with TextInputLayout
style.xml
If I remove the android:theme in TextInputLayout, the exception is gone. |
Same issue but with Buttons.
Device: LG G3 ` Caused by android.content.res.Resources$NotFoundException | android.content.res.Resources.loadDrawable (Resources.java:2136) Caused by org.xmlpull.v1.XmlPullParserException | android.graphics.drawable.Drawable.createFromXmlInner (Drawable.java:933) EDIT: |
Same issue with LG H810 Android 5.1 |
Same problem with LG k240h 6.0 |
I had the same bug, and cause by the attribute "BackgroundTint" in the Floating button view |
I have same issue in SAMSUNG GLAXAY J5 . |
same issue in android studio 3.0 |
/AndroidRuntime: FATAL EXCEPTION: main |
Hi! guys i have this error when i run application in kitkat i know multidex and i enabled but error show |
For Android Studio 3.0.1 I have got the same issue and I have resolved finally Opening the
|
Same issue: Solved. |
@techview51 you saved my life thank you!!!! |
@sshahidaslamm your solution solved my problem! |
@ariel179 You are welcome. |
Same problem here but with Fragment. |
@techview51 Copied and fixed, thank you so much! |
@techview51 Thank you so much ! |
@techview51 thanks a ton mate 🗡 |
@TBaulos , @samk17cmutpm , @UnselfconsciousLux : You are welcome. |
Also had the same ussue, I did what @techview51 said and it worked. |
@techview51 thanks for solutions... very simple! |
me: FATAL EXCEPTION: main |
you need to change AppTheme @styles.xml like |
Interesting, appt2 shouldn't break this, we'll need to raise a bug report to see why it's doing it |
I'm having the same issue. The Android drawable "res/drawable-v21/design_password_eye.xml" is not found when inflating TextInputLayout on some devices with Android Lollipop and higher. The same happens with "Calligraphy 3". |
@sshahidaslamm i'll follow your answer but it's give me a new error android.view.InflateException: Binary XML file line #129: Error inflating class TextView. |
@techview51 Thanks bro..I complete my app successfully.Just Because of you.Again thanks bro. |
@techview51 thanks dude.. |
@auzanassdq @sanjayajena37 @AllexSv @georgetsiga |
@techview51 thanks bro.....my problemis solve |
@soheltanvir0699 You are welcome. |
@techview51 Wasted 4 hours trying to solve the problem. The simple copy of image to drawable folder solved. But why does this work? |
@techview51 Thanks. |
@techview51 Are u a hero, sir ? , you just save my life !!! |
In my case, I found that I shouldn't use attr / theme reference in color resource. For example, the following color resource caused the problem. Problem
SolutionDon't use attribute / theme colors directly in color resource that may or may not be in turn used in theme.
If you really need theme color (i.e. |
@sshahidaslamm Thank you, you solved my problem |
You saved my life 👍 |
@rpattabi , You are right. Thanks. Don't use attribute / theme colors directly in color resource that may or may not be in turn used in theme. @color/colorSpecial <style name="mytheme" parent="xyz"> @color/title </style>If you really need theme color (i.e. ?attr/xxx), probably instead of regular color resource, you may need to define another color attribute in your theme. |
I am facing the issue in textInputLayout Password field Resource not found exception Drawable drawable/design_password_eye with resource ID #0x7f080098 Please help me to solve this . this is my build.gradle
|
hi, all
And on RelativeLayout :
Thank's @techview51 |
I don't know exactly, just works ;) |
You are welcome. |
Glad to hear that. Good luck. |
@JayTailor45 Glad to hear that. Good luck. |
You are welcome. |
Caused by: android.view.InflateException: Binary XML file line #54: Binary XML file line #54: Error inflating class EditText I was also getting the similar error, Adding xml files with drawable causes error many times, sometimes error does not come. |
In my case, no drawable 24 folder exist, nor values and layout. |
in my case I do not have drawable-24 or 21 in the project |
Thank you sir, it works fine |
You are welcome. |
none of the above solutions solved the issue for me. |
Thanks. This worked for me. |
You are welcome. |
typedArray.recycle()//must be last line in init function |
FATAL EXCEPTION: main |
It happens to ZenFone 2 device, Android 5.0
Im using this lib version 2.3.0
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.yyy/com.myapp.modules.login.views.LoginActivity}: android.view.InflateException: Binary XML file line #0: Error inflating class android.widget.EditText
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2326)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:147)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5264)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:695)
Caused by android.view.InflateException: Binary XML file line #0: Error inflating class android.widget.EditText
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.onCreateView(CalligraphyLayoutInflater.java:164)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.onCreateView(CalligraphyLayoutInflater.java:148)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
Full stack trace is here:
stacktrace.txt
Layout xml file of Login activity:
activity_login.txt
The text was updated successfully, but these errors were encountered: