先展开import看你的R导包了没有有的话,clean 再rebuild 试下
鼠标停到红色波浪线的地方,然后会弹出来一个上下文菜单,选择 import class 就可以了。
import class