1. R cannot be resolved to a variable 1>>检查manifest中的包名是否对应当前包名 2 >> 常规检查 右键项目属性>> android tool >> fix project