[Solved] Android Warning: android.content.res.Resources$NotFoundException: Resource ID #0x7f08010a

1.question

Running a page on my oppo machine doesn’t crash, but running a page on Hongmi Android 5.1 does. The crash information is as follows

/Timeline(11600): Timeline: Activity_launch_request time:61313216
I/WtProcessController( 3721): FOREGROUND INFO: name=com.appsinnova.android.keepshare uid=10234 pid=11600 TaskId:1079
W/ResourceType(11600): Failure getting entry for 0x7f08010a (t=7 e=266) (error -75)
I/ViewRootImpl(11600): CPU Rendering VSync enable = true
E/RecyclerView(11600): No adapter attached; skipping layout
W/ResourceType(11600): Failure getting entry for 0x7f08010a (t=7 e=266) (error -75)
D/AndroidRuntime(11600): Shutting down VM
E/AndroidRuntime(11600): FATAL EXCEPTION: main
E/AndroidRuntime(11600): Process: com.appsinnova.android.keepshare, PID: 11600
E/AndroidRuntime(11600): android.content.res.Resources$NotFoundException: Resource ID #0x7f08010a
E/AndroidRuntime(11600):        at android.content.res.Resources.getValue(Resources.java:1313)
E/AndroidRuntime(11600):        at android.content.res.MiuiResources.getValue(MiuiResources.java:146)
E/AndroidRuntime(11600):        at android.content.res.Resources.getDrawable(Resources.java:832)
E/AndroidRuntime(11600):        at android.widget.Editor.updateCursorPosition(Editor.java:1764)
E/AndroidRuntime(11600):        at android.widget.Editor.updateCursorsPositions(Editor.java:1597)
E/AndroidRuntime(11600):        at android.widget.TextView.getUpdatedHighlightPath(TextView.java:5257)
E/AndroidRuntime(11600):        at android.widget.TextView.onDraw(TextView.java:5444)
E/AndroidRuntime(11600):        at android.view.View.draw(View.java:15261)
E/AndroidRuntime(11600):        at android.view.View.updateDisplayListIfDirty(View.java:14197)
E/AndroidRuntime(11600):        at android.view.View.getDisplayList(View.java:14219)
E/AndroidRuntime(11600):        at android.view.View.draw(View.java:14989)
E/AndroidRuntime(11600):        at android.view.ViewGroup.drawChild(ViewGroup.java:3408)
E/AndroidRuntime(11600):        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3201)
E/AndroidRuntime(11600):        at android.view.View.updateDisplayListIfDirty(View.java:14192)
E/AndroidRuntime(11600):        at android.view.View.getDisplayList(View.java:14219)
E/AndroidRuntime(11600):        at android.view.View.draw(View.java:14989)
E/AndroidRuntime(11600):        at android.view.ViewGroup.drawChild(ViewGroup.java:3408)
E/AndroidRuntime(11600):        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3201)
E/AndroidRuntime(11600):        at android.view.View.updateDisplayListIfDirty(View.java:14192)
E/AndroidRuntime(11600):        at android.view.View.getDisplayList(View.java:14219)
E/AndroidRuntime(11600):        at android.view.View.draw(View.java:14989)
E/AndroidRuntime(11600):        at android.view.ViewGroup.drawChild(ViewGroup.java:3408)
E/AndroidRuntime(11600):        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3201)
E/AndroidRuntime(11600):        at android.view.View.updateDisplayListIfDirty(View.java:14192)
E/AndroidRuntime(11600):        at android.view.View.getDisplayList(View.java:14219)
E/AndroidRuntime(11600):        at android.view.View.draw(View.java:14989)
E/AndroidRuntime(11600):        at android.view.ViewGroup.drawChild(ViewGroup.java:3408)
E/AndroidRuntime(11600):        at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3201)
E/AndroidRuntime(11600):        at android.view.View.draw(View.java:15264)
E/AndroidRuntime(11600):        at android.widget.FrameLayout.draw(FrameLayout.java:598)
E/AndroidRuntime(11600):        at android.widget.ScrollView.draw(ScrollView.java:1689)
E/AndroidRuntime(11600):        at android.view.View.updateDisplayListIfDirty(View.java:14197)

2 analysis process

The Key log is as follows. It is obvious that the resource ID is # 0x7f08010a

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

Next, we went to the resource file and found that it was et_ search_ The cursor control ID, we will find the specific layout, and then look at its call. Obviously, here

it is found that the layout is under drawable-v24, and the image resources are put into drawable-v24, resulting in no images below 7.0 can be found

I corrected the above, so there are only two displays

3 solutions

Create a new Android project under drawable directory_search_Cursor layout is OK

Similar Posts: