[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.
Then after check in project. Which lib is using this resource file. I found below attached screenshot
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):
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
Ok. @Canato Will take time and update you with PR. Thanks.
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?