Android R文件和ADT14及更高版本的Eclipse

Android R文件和ADT14及更高版本的Eclipse,android,eclipse,Android,Eclipse,从ADT 14开始,资源字段不能用作交换机案例。 调用此修复程序以获取更多信息 mRefreshView = (RelativeLayout) mInflater.inflate( R.layout.pull_to_refresh_header, this, false); 发生在这一行。 我的R.java文件没有更改为新的所谓的no“final”格式,看起来是这样的 public static final class id { public

从ADT 14开始,资源字段不能用作交换机案例。 调用此修复程序以获取更多信息

        mRefreshView = (RelativeLayout) mInflater.inflate(
            R.layout.pull_to_refresh_header, this, false);
发生在这一行。 我的R.java文件没有更改为新的所谓的no“final”格式,看起来是这样的

 public static final class id {
    public static final int pull_to_refresh_header=0x7f060000;
    public static final int pull_to_refresh_image=0x7f060002;
    public static final int pull_to_refresh_progress=0x7f060001;
    public static final int pull_to_refresh_text=0x7f060003;
    public static final int pull_to_refresh_updated_at=0x7f060004;
}

既然我不能再调用R.layout.pull\u来刷新标题,那么代码中对此有什么修正吗?

他们说用
if-else
s替换
开关
es。除此之外,不需要其他修改。他们说Eclipse可以为您做到这一点。

更新到ADT16,一切似乎都恢复正常。

我没有switch语句。无论如何,我更新到ADT16,一切似乎都恢复正常。