android.content.res.Resources$NotFoundException: Resource ID #0x0

google.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. android.content.res.Resources$NotFoundException

    Resource ID #0x0

    at android.content.res.Resources.getValue()
  2. Android Platform
    ImageView.setImageIcon
    1. android.content.res.Resources.getValue(Resources.java:1328)
    2. android.content.res.Resources.obtainTempTypedValue(Resources.java:1207)
    3. android.content.res.Resources.getDrawable(Resources.java:803)
    4. android.graphics.drawable.Icon.loadDrawableInner(Icon.java:314)
    5. android.graphics.drawable.Icon.loadDrawable(Icon.java:270)
    6. android.widget.ImageView.setImageIcon(ImageView.java:533)
    6 frames
  3. com.android.settings
    DashboardAdapter.onBindViewHolder
    1. com.android.settings.dashboard.DashboardAdapter.onBindTile(DashboardAdapter.java:302)
    2. com.android.settings.dashboard.DashboardAdapter.onBindViewHolder(DashboardAdapter.java:222)
    3. com.android.settings.dashboard.DashboardAdapter.onBindViewHolder(DashboardAdapter.java:202)
    3 frames
  4. Android v7
    RecyclerView.onLayout
    1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5465)
    2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5498)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4735)
    4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4611)
    5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)
    6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384)
    7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
    8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3026)
    10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2903)
    11. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3277)
    11 frames
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:17314)
    2. android.view.ViewGroup.layout(ViewGroup.java:5543)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:17314)
    6. android.view.ViewGroup.layout(ViewGroup.java:5543)
    7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    8. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    9. android.view.View.layout(View.java:17314)
    10. android.view.ViewGroup.layout(ViewGroup.java:5543)
    11. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1731)
    12. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1575)
    13. android.widget.LinearLayout.onLayout(LinearLayout.java:1484)
    14. android.view.View.layout(View.java:17314)
    15. android.view.ViewGroup.layout(ViewGroup.java:5543)
    15 frames
  6. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1183)
    1 frame
  7. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:17314)
    2. android.view.ViewGroup.layout(ViewGroup.java:5543)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:17314)
    6. android.view.ViewGroup.layout(ViewGroup.java:5543)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1731)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1575)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1484)
    10. android.view.View.layout(View.java:17314)
    11. android.view.ViewGroup.layout(ViewGroup.java:5543)
    12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    13. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    13 frames
  8. Android
    DecorView.onLayout
    1. com.android.internal.policy.DecorView.onLayout(DecorView.java:683)
    1 frame
  9. Android Platform
    ViewRootImpl$TraversalRunnable.run
    1. android.view.View.layout(View.java:17314)
    2. android.view.ViewGroup.layout(ViewGroup.java:5543)
    3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2259)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1988)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1186)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6206)
    6 frames