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


Solutions on the web

Solution icon of stackoverflow
Resource ID #0x0

Solution icon of github
via GitHub by j-live
, 1 year ago
Resource ID #0x0

Solution icon of github
via GitHub by lolicon
, 4 days ago
Resource ID #0x0

Solution icon of github
via GitHub by felixschul
, 1 year ago
Resource ID #0x0

Solution icon of github
Resource ID #0x0

Solution icon of github
via GitHub by giladstern
, 1 year ago
Resource ID #0x0

Solution icon of github
via GitHub by pwnall
, 1 year ago
Resource ID #0x0

Solution icon of github
Resource ID #0x0

Solution icon of github
via GitHub by Mahmudul531
, 1 month ago
Resource ID #0x0

Solution icon of github
Resource ID #0x0

Stack trace

android.content.res.Resources$NotFoundException: Resource ID #0x0
	at android.content.res.Resources.getValue(Resources.java:1351)
	at android.content.res.Resources.getDrawable(Resources.java:804)
	at com.example.danac.cards.CardView.setCardImage(CardView.java:51)
	at com.example.danac.cards.CardView.onDraw(CardView.java:65)
	at android.view.View.draw(View.java:16178)
	at android.view.View.updateDisplayListIfDirty(View.java:15174)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.updateDisplayListIfDirty(View.java:15169)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.updateDisplayListIfDirty(View.java:15169)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.draw(View.java:16181)
	at android.view.View.updateDisplayListIfDirty(View.java:15174)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.updateDisplayListIfDirty(View.java:15169)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.updateDisplayListIfDirty(View.java:15169)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.updateDisplayListIfDirty(View.java:15169)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.updateDisplayListIfDirty(View.java:15169)
	at android.view.View.draw(View.java:15948)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
	at android.view.View.draw(View.java:16181)
	at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
	at android.view.View.updateDisplayListIfDirty(View.java:15174)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
	at android.view.Choreographer.doCallbacks(Choreographer.java:670)
	at android.view.Choreographer.doFrame(Choreographer.java:606)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5417)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
100 more bugmates