xml cannot be resolved or is not a field

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.

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念