xml cannot be resolved or is not a field

前端之家收集整理的这篇文章主要介绍了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.

原文链接:https://www.f2er.com/xml/298611.html

猜你在找的XML相关文章