android.view.InflateException: Binary XML file line #12: Error inflating class

后端 未结 30 2419
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 13:48

I am receiving many errors of kind displayed in the subj. These errors seems to be occasional and I cannot reproduce them. From stack I can learn that such error may occurs

30条回答
  •  长情又很酷
    2020-11-22 14:30

    I know the question is already answered but still I'm posting with thought that may someone run into this kind of problem.

    In my case problem is i'm loading my application to phone which refer layouts from res/layout/ folder and values for @dimens from res/values/dimens here it's font_22 which it's trying to access and it's define in res/values-xlarge/dimens.

    I'm actually updating UI of existing project.

    I ran into this problem because I'm using IDE Eclipse where I ctrl+space for hint while writing xml for layout folder it displays all values from values as well as values-xlarge folder regardless of for which folder I'm writing.

    I also know that the values in both files should be same to mapped for different screens.

    Hope this may help someone run into this kind of silly problem.

提交回复
热议问题