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

GitHub | bassosimone | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0
    samebug tip
    Call notifyDataSetChanged instead of notifyItemRemoved due to a bug in RecyclerView
  2. 0

    What's wrong with my recyclerView?

    Stack Overflow | 1 year ago | Niyamat Almass
    android.content.res.Resources$NotFoundException: String resource ID #0x0
  3. 0

    GitHub comment 21#269323326

    GitHub | 4 months ago | bassosimone
    android.content.res.Resources$NotFoundException: String resource ID #0x0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 21#269323326

    GitHub | 4 months ago | bassosimone
    android.content.res.Resources$NotFoundException: String resource ID #0x0
  6. 0
    samebug tip
    This probably occurs because you are calling notifyItemInserted(position);, notifyItemChanged(position), or notifyItemRemoved(position); from a background thread (or from a callback, which runs on a background thread). Use a Handler to solve it.
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

    String resource ID #0x0

    at android.content.res.Resources.getText()
  2. Android Platform
    Context.getString
    1. android.content.res.Resources.getText(Resources.java:335)
    2. android.content.res.Resources.getString(Resources.java:381)
    3. android.content.Context.getString(Context.java:476)
    3 frames
  3. org.openobservatory.ooniprobe
    TestsListAdapter.onBindViewHolder
    1. org.openobservatory.ooniprobe.adapter.TestsListAdapter.onBindViewHolder(TestsListAdapter.java:72)
    2. org.openobservatory.ooniprobe.adapter.TestsListAdapter.onBindViewHolder(TestsListAdapter.java:31)
    2 frames
  4. Android v7
    RecyclerView.onMeasure
    1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6279)
    2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6312)
    3. android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5258)
    4. android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5521)
    5. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5363)
    6. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5359)
    7. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2141)
    8. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1525)
    9. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1488)
    10. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:585)
    11. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3506)
    12. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2969)
    12 frames
  5. org.openobservatory.ooniprobe
    NotScrollableListView.onMeasure
    1. org.openobservatory.ooniprobe.view.NotScrollableListView.onMeasure(NotScrollableListView.java:26)
    1 frame
  6. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:19857)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
    6. android.view.View.measure(View.java:19857)
    7. android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1293)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    9. android.widget.ScrollView.onMeasure(ScrollView.java:340)
    10. android.view.View.measure(View.java:19857)
    11. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
    12. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    12 frames
  7. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
    1 frame
  8. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:19857)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
    2 frames
  9. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:393)
    1 frame
  10. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:19857)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    4. android.view.View.measure(View.java:19857)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
    9. android.view.View.measure(View.java:19857)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    11 frames
  11. Android
    DecorView.onMeasure
    1. com.android.internal.policy.DecorView.onMeasure(DecorView.java:689)
    1 frame
  12. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:19857)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2275)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1366)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1619)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:686)
    9. android.view.Choreographer.doFrame(Choreographer.java:621)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
    11. android.os.Handler.handleCallback(Handler.java:751)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:154)
    14. android.app.ActivityThread.main(ActivityThread.java:6119)
    14 frames
  13. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  14. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
    2 frames