Resources NotFoundException?

前端 未结 10 1688
清歌不尽
清歌不尽 2020-11-27 19:01

I\'m getting crash reports from android marketplace:

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

I get about 17 of

10条回答
  •  时光取名叫无心
    2020-11-27 19:34

    The same problem I found on my application today morning and found a very simple solution to this. the problem looks big and complicated but it's not.

    Steps which I followed are

    1. Delete the bin folder it self
    2. Clean the project
    3. Remove application from your device
    4. Run the application and check your scenario.

    According to me it should not give this exception again.

    Reason : When you build the application R.java contains all the memory address and it happens that those address are invalid for next run.

    Second Reason : When you have the application which supports lanscape and portrati mode both and if you have not wrote the XML file for either of them then it's the possibility that may lead to this kind of crash. and there are pretty much chances of OutoFmemory and Memory leak issues when you have to support both the modes. please think on this as well.

提交回复
热议问题