您的位置:首页 > 其它

xml cannot be resolved or is not a field

2014-05-24 23:14 363 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: