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

GitHub | dabele91 | 9 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.
  1. 0

    android.content.res.Resources$NotFoundException since version 0.4.2

    GitHub | 9 months ago | dabele91
    android.content.res.Resources$NotFoundException: Resource ID #0x2
  2. 0

    Creating swiping fragments for app introduction

    Stack Overflow | 1 year ago | Steve
    android.content.res.Resources$NotFoundException: Resource ID #0x0
  3. 0

    how to refer a layout file in external jar

    Stack Overflow | 4 years ago | SelvaMariappan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testapplication/com.example.test.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/ic_launcher.png from xml type layout resource ID #0x7f020000
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android app not working on HTC Desire but working fine on other devices

    Stack Overflow | 6 years ago | tipycalFlow
    android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
  6. 0

    Android missing resource exception even though it's in the APK

    Stack Overflow | 10 months ago | Ventis
    android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png from xml type layout resource ID #0x7f020000
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 #0x2

    at android.content.res.Resources.getValue()
  2. Android Platform
    LayoutInflater.inflate
    1. android.content.res.Resources.getValue(Resources.java:1351)
    2. android.content.res.Resources.loadXmlResourceParser(Resources.java:2774)
    3. android.content.res.Resources.getLayout(Resources.java:1165)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:421)
    4 frames
  3. com.firebase.ui
    FirebaseRecyclerAdapter.onCreateViewHolder
    1. com.firebase.ui.database.FirebaseRecyclerAdapter.onCreateViewHolder(FirebaseRecyclerAdapter.java:160)
    1 frame
  4. Android v7
    RecyclerView$1.run
    1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5779)
    2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5003)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
    4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
    5. android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:531)
    6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
    7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
    8. android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
    10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)
    11. android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1505)
    12. android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:151)
    13. android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:305)
    13 frames
  5. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    3. android.view.Choreographer.doFrame(Choreographer.java:603)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:148)
    8. android.app.ActivityThread.main(ActivityThread.java:5417)
    8 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames