Android Custom Button State Selector XML file causing Resource$NotFoundException

前端 未结 1 1581
轮回少年
轮回少年 2021-01-21 00:07

My Activities are randomly crashing due to Resource$NotFoundException and it\'s always due to one of my custom button\'s state selector files. And the crashes are completely ra

1条回答
  •  时光取名叫无心
    2021-01-21 00:35

    This issue is essentially an out of memory scenario. After wrapping up my inflating of xml files in try-catch blocks, I was able to get passed this initial error of not being able to load in files/ find them. The resulting behavior is Activities with images just plain missing until finally an actual out of memory exception is thrown.

    Fix? Found and removed numerous leaks and down sized a couple image files.

    0 讨论(0)
提交回复
热议问题