ResourceNotFoundException how to debug?

I have a couple of market reports about this exception. There is no link to where this happens in my application, and most users do not have this problem. How do I debug something like this? This is NOT an exception that I get from all devices. Only one specific device can report this.

android.content.res.Resources$NotFoundException: Resource ID #0x109005d at android.content.res.Resources.getValue(Resources.java:892) at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869) at android.content.res.Resources.getLayout(Resources.java:731) at android.view.LayoutInflater.inflate(LayoutInflater.java:318) at android.view.LayoutInflater.inflate(LayoutInflater.java:276) at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2451) at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2506) at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1626) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2165) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) 
+6
source share
2 answers

Maybe there is some kind of resource that is defined in a specific folder and not located in a less specific folder? For example, did you define drawable X in a drawable folder, not drawable-port? You must double check your specific folders for resources that are not in other folders.

+1
source

Do you accidentally use this resource: com.android.internal.R.layout.search_dropdown_item_icons_2line ? Since this is an internal package, perhaps not all of its implementations contain (or not every API level) or contain it, but with a different resource identifier.

0
source

Source: https://habr.com/ru/post/901640/


All Articles