android.view.InflateException: Binary XML file line #52: Error inflating class EditText

Stack Overflow | Shanuka | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to set the size of vector drawable as drawableLeft drawable?

    Stack Overflow | 9 months ago | Shanuka
    android.view.InflateException: Binary XML file line #52: Error inflating class EditText
  2. 0

    Android Error inflating class EditText

    Stack Overflow | 11 months ago | jackykuo
    java.lang.RuntimeException: Unable to start activity ComponentInfo{yichun.myapplication/yichun.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #20: Error inflating class EditText

    Root Cause Analysis

    1. org.xmlpull.v1.XmlPullParserException

      Binary XML file line #1: invalid drawable tag vector

      at android.graphics.drawable.Drawable.createFromXmlInner()
    2. Android Platform
      EditText.<init>
      1. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
      2. android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
      3. android.content.res.Resources.loadDrawable(Resources.java:2092)
      4. android.content.res.TypedArray.getDrawable(TypedArray.java:602)
      5. android.widget.TextView.<init>(TextView.java:806)
      6. android.widget.EditText.<init>(EditText.java:60)
      6 frames
    3. Android v7
      AppCompatDelegateImplV9.onCreateView
      1. android.support.v7.widget.AppCompatEditText.<init>(AppCompatEditText.java:59)
      2. android.support.v7.widget.AppCompatEditText.<init>(AppCompatEditText.java:55)
      3. android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:112)
      4. android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
      5. android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072)
      5 frames
    4. Android Support v4
      LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView
      1. android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
      1 frame
    5. uk.co.chrisjenx
      CalligraphyLayoutInflater$WrapperFactory2.onCreateView
      1. uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$WrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:280)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684)
      2. android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
      3. android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
      5. android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:492)
      6 frames
    7. uk.co.chrisjenx
      CalligraphyLayoutInflater.inflate
      1. uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
      1 frame
    8. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
      2. android.view.LayoutInflater.inflate(LayoutInflater.java:353)
      2 frames
    9. Android v7
      AppCompatActivity.setContentView
      1. android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
      2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
      2 frames
    10. com.tekhinno.myglukose
      LoginActivity.onCreate
      1. com.tekhinno.myglukose.LoginActivity.onCreate(LoginActivity.java:66)
      1 frame
    11. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5231)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
      5. android.app.ActivityThread.access$800(ActivityThread.java:135)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:136)
      9. android.app.ActivityThread.main(ActivityThread.java:5001)
      9 frames
    12. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    13. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames