比如你在xml中写了 android:id = "@+id/radio" 但是在R文件中没有看到类似这样的的代码 public static final int radio=0x7f020000; 解决办法Project---> clean 就OK了