java.lang.RuntimeException: Unable to start activityComponentInfo{com.abc.efg.plcapp/com.abc.efg.ghi.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class ImageView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) at android.app.ActivityThread.access$600(ActivityThread.java:130) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #37: Error inflating class ImageView at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830) at android.view.LayoutInflater.rInflate(LayoutInflater.java:736) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830) at android.view.LayoutInflater.rInflate(LayoutInflater.java:736) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) at com.ishttaa.rakesh.plcapp.MainActivity.onCreate(MainActivity.java:40) at android.app.Activity.performCreate(Activity.java:5008) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

  1. 0

    App works well in android 5.1 and 6.1 but crashes in 4.10(API 16)

    Stack Overflow | 5 months ago | Rakesh Niranajan
    java.lang.RuntimeException: Unable to start activityComponentInfo{com.abc.efg.plcapp/com.abc.efg.ghi.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class ImageView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) at android.app.ActivityThread.access$600(ActivityThread.java:130) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #37: Error inflating class ImageView at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830) at android.view.LayoutInflater.rInflate(LayoutInflater.java:736) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830) at android.view.LayoutInflater.rInflate(LayoutInflater.java:736) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) at com.ishttaa.rakesh.plcapp.MainActivity.onCreate(MainActivity.java:40) at android.app.Activity.performCreate(Activity.java:5008) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
  2. 0

    Crash at startup on version 26.03

    GitHub | 8 months ago | hybner
    org.xmlpull.v1.XmlPullParserException: Binary XML file line #2: <bitmap> requires a valid src attribute
  3. 0

    not work on android

    GitHub | 4 months ago | Lepinr
    android.view.InflateException: Binary XML file line #35: Error inflating class ImageView > 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 android.view.LayoutInflater.inflate(LayoutInflater.java:397) > at android.view.LayoutInflater.inflate(LayoutInflater.java:353) > at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276) > at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:136) > at com.yalantis.ucrop.UCropActivity.onCreate(UCropActivity.java:102) > at android.app.Activity.performCreate(Activity.java:5303) > at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1091) > at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165) > at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2255)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 17#174319662

    GitHub | 11 months ago | Twinkle942910
    android.content.res.Resources$NotFoundException: File res/drawable/circle_avd.xml from drawable resource ID #0x7f020045 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at android.content.res.Resources.loadDrawable(Resources.java:1918) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at android.content.res.Resources.getDrawable(Resources.java:659) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at com.wnafee.vector.compat.ResourcesCompat.getDrawable(ResourcesCompat.java:34) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at com.twinkle.attachsvg.activity.MainActivity.onCreate(MainActivity.java:33) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5008) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 01-24 16:58:20.536 1654-1654/? E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
  6. 0

    GitHub comment 17#175909900

    GitHub | 10 months ago | Twinkle942910
    android.content.res.Resources$NotFoundException: File res/drawable/circle_fade.xml from drawable resource ID #0x7f02003c 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at android.content.res.Resources.loadDrawable(Resources.java:1918) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at android.content.res.Resources.getDrawable(Resources.java:659) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at com.wnafee.vector.compat.ResourcesCompat.getDrawable(ResourcesCompat.java:34) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at com.example.vector_compat_test.MainActivity.onCreate(MainActivity.java:22) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5008) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 01-27 23:28:45.373 1091-1091/? E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

    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. org.xmlpull.v1.XmlPullParserException

      Binary XML file line 1: invalid drawable tag vector at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:877) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818) at android.content.res.Resources.loadDrawable(Resources.java:1915) at android.content.res.TypedArray.getDrawable(TypedArray.java:601)

      at android.widget.ImageView.<init>()
    2. Android Platform
      ImageView.<init>
      1. android.widget.ImageView.<init>(ImageView.java:120)
      1 frame
    3. Android v7
      AppCompatDelegateImplV7.onCreateView
      1. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:57)
      2. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:53)
      3. android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
      4. android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:963)
      5. android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1022)
      5 frames
    4. Android Support v4
      LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView
      1. android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
      1 frame
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
      2. android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
      3. android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
      5. android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
      6. android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
      7. android.view.LayoutInflater.inflate(LayoutInflater.java:489)
      8. android.view.LayoutInflater.inflate(LayoutInflater.java:396)
      9. android.view.LayoutInflater.inflate(LayoutInflater.java:352)
      9 frames
    6. Android v7
      AppCompatActivity.setContentView
      1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)
      2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
      2 frames
    7. com.abc.efg
      MainActivity.onCreate
      1. com.abc.efg.ghi.MainActivity.onCreate(MainActivity.java:40)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5008)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
      5. android.app.ActivityThread.access$600(ActivityThread.java:130)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
      7. android.os.Handler.dispatchMessage(Handler.java:99)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:4745)
      9 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    11. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame