java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raymi.mifm/com.raymi.mifm.app.main.LoginActivity}: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class <unknown>

GitHub | clxxcl | 4 months ago
  1. 0

    使用TextView时,添加了android:text="@string/welcome" 或android:background="@drawable/bg_progress_bar_black" 就会报下面的错误,删除不用就好了。

    GitHub | 4 months ago | clxxcl
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raymi.mifm/com.raymi.mifm.app.main.LoginActivity}: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class <unknown>
  2. 0

    Android app crashes when long press on edit view

    Stack Overflow | 1 year ago | Rahul
    android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
  3. 0

    LayoutInflater : Error inflating class <unknown>

    Stack Overflow | 3 years ago | Diolor
    java.lang.ArrayIndexOutOfBoundsException: length=15; index=513
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android app crashing when long click text in edittext

    Stack Overflow | 1 year ago | KrustyGString
    android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
  6. 0

    Error when Tapping multiple times on EditText

    Stack Overflow | 2 years ago | rashad.z
    android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=5; index=6

      at android.content.res.AssetManager.getPooledStringForCookie()
    2. Android Platform
      TextView.<init>
      1. android.content.res.AssetManager.getPooledStringForCookie(AssetManager.java:276)
      2. android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1158)
      3. android.content.res.TypedArray.getText(TypedArray.java:160)
      4. android.content.res.MiuiTypedArray.getText(MiuiTypedArray.java:23)
      5. android.widget.TextView.<init>(TextView.java:976)
      6. android.widget.TextView.<init>(TextView.java:674)
      7. android.widget.TextView.<init>(TextView.java:670)
      7 frames
    3. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Native Method)
      1 frame
    4. Android Platform
      LayoutInflater.createView
      1. android.view.LayoutInflater.createView(LayoutInflater.java:623)
      1 frame
    5. Android
      PhoneLayoutInflater.onCreateView
      1. com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.onCreateView(LayoutInflater.java:698)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:766)
      3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:839)
      5. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
      6. android.view.LayoutInflater.rInflate(LayoutInflater.java:842)
      7. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
      8. android.view.LayoutInflater.inflate(LayoutInflater.java:519)
      9. android.view.LayoutInflater.inflate(LayoutInflater.java:427)
      10. android.view.LayoutInflater.inflate(LayoutInflater.java:374)
      10 frames
    7. Android
      PhoneWindow.setContentView
      1. com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
      1 frame
    8. Android Platform
      Activity.setContentView
      1. android.app.Activity.setContentView(Activity.java:2183)
      1 frame
    9. com.raymi.mifm
      LoginActivity.onCreate
      1. com.raymi.mifm.app.main.LoginActivity.onCreate(LoginActivity.java:58)
      1 frame
    10. Android Platform
      Instrumentation.callActivityOnCreate
      1. android.app.Activity.performCreate(Activity.java:6303)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
      2 frames
    11. net.wequick.small
      ApkBundleLauncher$InstrumentationWrapper.callActivityOnCreate
      1. net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.callActivityOnCreate(ApkBundleLauncher.java:170)
      1 frame
    12. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
      2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)
      3. android.app.ActivityThread.access$900(ActivityThread.java:153)
      4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
      5. android.os.Handler.dispatchMessage(Handler.java:102)
      6. android.os.Looper.loop(Looper.java:148)
      7. android.app.ActivityThread.main(ActivityThread.java:5438)
      7 frames
    13. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    14. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
      1 frame