android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable resource ID #0x7f020057

Stack Overflow | Whiz | 7 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

    Can't find ColorStateList from drawable resource ID only on Android Nougat

    Stack Overflow | 7 months ago | Whiz
    android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable resource ID #0x7f020057

    Root Cause Analysis

    1. android.content.res.Resources$NotFoundException

      Can't find ColorStateList from drawable resource ID #0x7f020057

      at android.content.res.ResourcesImpl.loadColorStateList()
    2. Android Platform
      Activity.setTheme
      1. android.content.res.ResourcesImpl.loadColorStateList(ResourcesImpl.java:840)
      2. android.content.res.Resources.loadColorStateList(Resources.java:998)
      3. android.content.res.TypedArray.getColor(TypedArray.java:447)
      4. android.app.Activity.onApplyThemeResource(Activity.java:4039)
      5. android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:198)
      6. android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:140)
      7. android.app.Activity.setTheme(Activity.java:4009)
      7 frames
    3. Android v7
      AppCompatActivity.setTheme
      1. android.support.v7.app.AppCompatActivity.setTheme(AppCompatActivity.java:90)
      1 frame
    4. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2592)
      2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
      2 frames