xml cannot be resolved or is not a field

来源:互联网 发布:淘宝卖家怎么改会员名 编辑:程序博客网 时间:2024/05/16 16:23
        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.

0 0
原创粉丝点击