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.
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.
相关文章推荐
- Android Error:main cannot be resolved or is not a field 问题解决方法
- Android Question - “Id cannot be resolved or is not a field” error?
- irectory_list cannot be resolved or is not a field问题的解决办法
- main cannot be resolved or is not a field
- 在android编程中出现cannot be resolved or is not a field
- 在android编程中出现cannot be resolved or is not a field
- (Layout) cannot be resolved or is not a field 错误
- TYPE_LINEAR_ACCELERATION cannot be resolved or is not a field
- main cannot be resolved or is not a field
- main cannot be resolved or is not a field (来自 CSDN_ID typename)
- button1 cannot be resolved or is not a field
- main cannot be resolved or is not a field
- Android开发中Layout中明明改了id,但是还出现"cannot be resolved or is not a field"的原因
- R.xxx cannot be resolved or is not a field
- layout cannot be resolved or is not a field
- main cannot be resolved or is not a field
- XXX cannot be resolved or is not a field
- *** cannot be resolved or is not a field
- Android Error:main cannot be resolved or is not a field
- main cannot be resolved or is not a field