Android's strange bug, can't find the resource id.

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abc.xxx/com.example.xxx.ui.activity.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable/selecter_tab_a.xml from drawable resource ID -sharp0x7f070091

Environment introduction: the company win7 and the home win10 two computers Synchronize development, the code uses git Synchronize to Mayun. Ide uses as3.2, test phones-a Huawei 4.4system and a Huawei 7.0system.
bug appears: both phones are running normally for the first few weeks. Suddenly one day, the home computer compiled apk in Huawei 4.4 reported the above error code, 7.0 does not have. I thought it was the mobile phone problem, because 4.4 mobile phone just went wrong these days, so I didn"t care.
bug appears again: yesterday I had a version upgrade, which I compiled on my company computer, and the background monitoring upgrade is normal, without any crash. But when I got home, I found that there was a small problem. There was a paragraph in app that needed to be changed, and it didn"t matter. So I compiled apk with my home computer to replace the upgrade package, and in just a few minutes, I monitored a lot of crash, in the background and it was the same bug as my 4.4phone. I quickly changed the upgrade package back.
try debug:. I have clear the whole project, cleared the cache, and still have bug. Try to find the R.java file and find nothing unusual. Now all of a sudden, most of the bug errors can basically be solved, but this bug can not find a breakthrough, do not know how to solve.
Gods, who can provide good ideas? thank you!

Oct.12,2021

< H1 > first step < / H1 >

check whether the resource file has the same name as the XML file selecter_tab_a.xml, such as selecter_tab_a.png

< H1 > second step < / H1 >

check whether the resource map exists in the corresponding resolution folder
.

Menu