java.lang.RuntimeException: Unable to start activity ComponentInfo{com.md.emenox/com.afollestad.polar.ui.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable/selector_tabs.xml from drawable resource ID #0x7f020087

GitHub | mddanishansari | 10 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

    App crashes on KitKat with the latest polar update 1.60

    GitHub | 10 months ago | mddanishansari
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.md.emenox/com.afollestad.polar.ui.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable/selector_tabs.xml from drawable resource ID #0x7f020087
  2. 0

    Android application crashing when running on device but works in emulator

    Stack Overflow | 1 year ago | Convict Moody
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hscs.ibd.ibdsystem/com.hscs.ibd.ibdsystem.MainActivity}: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.design.widget.NavigationView

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Can't convert to color: type=0x2

      at android.content.res.TypedArray.getColor()
    2. Android Platform
      XResources.getDrawable
      1. android.content.res.TypedArray.getColor(TypedArray.java:327)
      2. android.content.res.XResources$XTypedArray.getColor(XResources.java:889)
      3. android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:970)
      4. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:990)
      5. android.graphics.drawable.Drawable.createFromXml(Drawable.java:930)
      6. android.content.res.Resources.loadDrawable(Resources.java:3364)
      7. android.content.res.Resources.getDrawable(Resources.java:1864)
      8. android.content.res.XResources.getDrawable(XResources.java:521)
      9. android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:176)
      10. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:990)
      11. android.graphics.drawable.Drawable.createFromXml(Drawable.java:930)
      12. android.content.res.Resources.loadDrawable(Resources.java:3364)
      13. android.content.res.Resources.getDrawable(Resources.java:1864)
      14. android.content.res.XResources.getDrawable(XResources.java:521)
      14 frames
    3. Android Support v4
      ContextCompat.getDrawable
      1. android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:354)
      1 frame
    4. Android v7
      AppCompatDrawableManager.getDrawable
      1. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:193)
      2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:181)
      2 frames
    5. android.support.design
      TabLayout.newTab
      1. android.support.design.widget.TabLayout$TabView.<init>(TabLayout.java:1510)
      2. android.support.design.widget.TabLayout.createTabView(TabLayout.java:926)
      3. android.support.design.widget.TabLayout.newTab(TabLayout.java:563)
      3 frames
    6. com.afollestad.polar
      MainActivity.onCreate
      1. com.afollestad.polar.ui.MainActivity.addTab(MainActivity.java:465)
      2. com.afollestad.polar.ui.MainActivity.setupTabs(MainActivity.java:401)
      3. com.afollestad.polar.ui.MainActivity.onCreate(MainActivity.java:128)
      3 frames
    7. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5541)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2411)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2507)
      5. android.app.ActivityThread.access$900(ActivityThread.java:172)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:146)
      9. android.app.ActivityThread.main(ActivityThread.java:5692)
      9 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
      2 frames
    10. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
      1 frame
    11. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame