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

Stack Overflow | z.al | 2 weeks ago
  1. 0

    image icon not showing in Listview Android?

    Stack Overflow | 2 weeks ago | z.al
    android.content.res.Resources$NotFoundException: Resource ID #0x1
  2. 0

    How can i add image icon on listview in android?

    Stack Overflow | 2 weeks ago | z.al
    android.content.res.Resources$NotFoundException: Resource ID #0x1
  3. 0

    how to get resource id from the value stored in string or text in SQLite database

    Stack Overflow | 5 months ago | user3701411
    android.content.res.Resources$NotFoundException: Resource ID #0xffffffff
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Gallery picker and Camera intent crashes upon onActivityresult

    Stack Overflow | 8 months ago | Ken
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1889, result=-1, data=Intent { dat=content://media/external/images/media/3196 flg=0x1 (has extras) }} to activity {com.example/com.example.Activity}: android.content.res.Resources$NotFoundException: Resource ID #0xffffffff
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. android.content.res.Resources$NotFoundException

    Resource ID #0x1

    at android.content.res.Resources.getValue()
  2. Android Platform
    Resources.getValue
    1. android.content.res.Resources.getValue(Resources.java:2452)
    1 frame
  3. Android v7
    AppCompatDrawableManager.getDrawable
    1. android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:330)
    2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:195)
    3. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188)
    3 frames
  4. android.support.v7
    AppCompatResources.getDrawable
    1. android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:100)
    1 frame
  5. Android v7
    AppCompatImageView.setImageResource
    1. android.support.v7.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:73)
    2. android.support.v7.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:81)
    2 frames
  6. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.widget.SimpleAdapter.setViewImage(SimpleAdapter.java:262)
    2. android.widget.SimpleAdapter.bindView(SimpleAdapter.java:192)
    3. android.widget.SimpleAdapter.createViewFromResource(SimpleAdapter.java:126)
    4. android.widget.SimpleAdapter.getView(SimpleAdapter.java:114)
    5. android.widget.AbsListView.obtainView(AbsListView.java:2828)
    6. android.widget.ListView.measureHeightOfChildren(ListView.java:1292)
    7. android.widget.ListView.onMeasure(ListView.java:1204)
    8. android.view.View.measure(View.java:18870)
    9. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)
    10. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464)
    11. android.view.View.measure(View.java:18870)
    12. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
    12 frames
  7. android.support.design
    CoordinatorLayout.onMeasure
    1. android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:703)
    2. android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90)
    3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1367)
    4. android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:768)
    4 frames
  8. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:18870)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    3 frames
  9. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
    1 frame
  10. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:18870)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1435)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:721)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:612)
    6. android.view.View.measure(View.java:18870)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    9. android.view.View.measure(View.java:18870)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1435)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:721)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:612)
    14. android.view.View.measure(View.java:18870)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5908)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    16 frames
  11. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3076)
    1 frame
  12. Android Platform
    Choreographer.doFrame
    1. android.view.View.measure(View.java:18870)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2392)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1416)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1661)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1301)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7016)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:590)
    9. android.view.Choreographer.doFrame(Choreographer.java:560)
    9 frames