java.lang.RuntimeException: Unable to start activity ComponentInfo{com.coolappz.FitPartners/com.coolappz.FitPartners.ui.MainActivity}: android.view.InflateException: Binary XML file line #42: Error inflating class com.coolappz.FitPartners.ui.custom.CustomFontEditText

Stack Overflow | Tommy Hart'no | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Unable to Inflate EditText in some devices

    Stack Overflow | 5 months ago | Tommy Hart'no
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.coolappz.FitPartners/com.coolappz.FitPartners.ui.MainActivity}: android.view.InflateException: Binary XML file line #42: Error inflating class com.coolappz.FitPartners.ui.custom.CustomFontEditText
  2. 0

    App crashes due to android.view.InflateException. Error inflating class

    Stack Overflow | 2 months ago | Rushikesh Kulkarni
    android.view.InflateException: Binary XML file line #165: Error inflating class android.support.v7.widget.AppCompatEditText

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to resolve attribute at index 96

      at android.content.res.TypedArray.getColor()
    2. Android Platform
      EditText.<init>
      1. android.content.res.TypedArray.getColor(TypedArray.java:401)
      2. android.widget.TextView.<init>(TextView.java:717)
      3. android.widget.EditText.<init>(EditText.java:65)
      4. android.widget.EditText.<init>(EditText.java:61)
      5. android.widget.EditText.<init>(EditText.java:57)
      5 frames
    3. com.coolappz.FitPartners
      CustomFontEditText.<init>
      1. com.coolappz.FitPartners.ui.custom.CustomFontEditText.<init>(CustomFontEditText.java:18)
      1 frame
    4. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Native Method)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:288)
      2 frames
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createView(LayoutInflater.java:607)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
      3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
      7. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
      7 frames
    6. Android v7
      AppCompatActivity.setContentView
      1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276)
      2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
      2 frames
    7. com.coolappz.FitPartners
      MainActivity.onCreate
      1. com.coolappz.FitPartners.ui.MainActivity.onCreate(MainActivity.java:165)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6018)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2273)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2380)
      5. android.app.ActivityThread.access$800(ActivityThread.java:151)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1285)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5289)
      9 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
      2 frames