question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID #0x7f080126

See original GitHub issue
  • Lib Version [3.3.5]

Describe the bug App is got crash in only NEXUS 5X device. I am attaching here the log of crash which is received in crashlytics

CrashLog

Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID #0x7f080126
       at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:215)
       at android.content.res.Resources.getValue(Resources.java:1316)
       at androidx.appcompat.widget.ResourceManagerInternal.createDrawableIfNeeded(ResourceManagerInternal.java:179)
       at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:144)
       at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:135)
       at androidx.appcompat.content.res.AppCompatResources.getDrawable(AppCompatResources.java:104)
       at androidx.appcompat.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:505)
       at androidx.appcompat.view.menu.ActionMenuItemView.initialize(ActionMenuItemView.java:126)
       at androidx.appcompat.widget.ActionMenuPresenter.bindItemView(ActionMenuPresenter.java:207)
       at androidx.appcompat.view.menu.BaseMenuPresenter.getItemView(BaseMenuPresenter.java:188)
       at androidx.appcompat.widget.ActionMenuPresenter.getItemView(ActionMenuPresenter.java:193)
       at androidx.appcompat.widget.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:495)
       at androidx.appcompat.view.menu.MenuBuilder.flagActionItems(MenuBuilder.java:1176)
       at androidx.appcompat.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:96)
       at androidx.appcompat.widget.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:226)
       at androidx.appcompat.view.menu.MenuBuilder.dispatchPresenterUpdate(MenuBuilder.java:292)
       at androidx.appcompat.view.menu.MenuBuilder.onItemsChanged(MenuBuilder.java:1063)
       at androidx.appcompat.view.menu.MenuBuilder.startDispatchingItemsChanged(MenuBuilder.java:1090)
       at androidx.appcompat.app.AppCompatDelegateImpl.preparePanel(AppCompatDelegateImpl.java:1949)
       at androidx.appcompat.app.AppCompatDelegateImpl.doInvalidatePanelMenu(AppCompatDelegateImpl.java:2188)
       at androidx.appcompat.app.AppCompatDelegateImpl$2.run(AppCompatDelegateImpl.java:271)
       at android.os.Handler.handleCallback(Handler.java:790)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6494)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

I thought the issue is within my app core drawables used. But when I used this to find out which drawable is doing the crash. I found below attached screenshot.

image

Then after check in project. Which lib is using this resource file. I found below attached screenshot

image

To Reproduce Steps to reproduce the behavior: Use in below mentioned device.

Expected behavior It should not crash in any device because of resource file. File should place in anydpi resource folder to prevent this.

Media Please add screenshots and/or screen recordings to help explain your problem. Added all required screenshots in description.

Smartphone (please complete the following information): image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hiteshsarsavacommented, Dec 2, 2021

Ok. @Canato Will take time and update you with PR. Thanks.

0reactions
sanveancommented, Apr 6, 2022

Ah I see. @hiteshsarsava any chance you could submit the PR for this one? Sounds like you’ve identified the exact change required to solve this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

android.content.res.Resources$NotFoundException: String ...
I am wondering why Android Studio does not advice you. I had the same problem setting an int value into TextView.setText for error....
Read more >
Fatal Exception: android.content.res.Resources ... - GitHub
Summary: The map randomly crashes while setting up the cluster manager and rendering the clusters. Steps to reproduce: This is happening ...
Read more >
Resources.NotFoundException - Android Developers
Returns an array containing all of the exceptions that were suppressed, typically by the try -with-resources statement, in order to deliver this exception....
Read more >
crash [@ android.content.res.Resources$NotFoundException
Resources$NotFoundException : Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java) ] Clicking link in about:healthreport for Choose what I ...
Read more >
Error: android.content.res.Resources$NotFoundException - B4X
android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:197)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found