码迷,mamicode.com
首页 > 其他好文 > 详细

xml cannot be resolved or is not a field

时间:2014-05-25 16:19:23      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:c   java   a   set   for   res   

        loadHeadersFromResource(R.xml.settings_headers, headers);

error: xml cannot be resolved or is not a field, but res/xml/settings_headers.xml exists.

Every xml file will have its own ID in R.java, which is AUTO-GENERATED by eclipse when building project. But if the xml file is wrong, then there‘s no ID for it. So just fix the xml file first, then build project, it will be ok.

xml cannot be resolved or is not a field,布布扣,bubuko.com

xml cannot be resolved or is not a field

标签:c   java   a   set   for   res   

原文地址:http://blog.csdn.net/llrraa2010/article/details/26878391

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!