具体遇到情况如下,提示Cannot resolve symbol ‘R’ (错误:程序包R不存在):**解决方法:把光标放在R附近,按住Alt+enter弹出提示窗口 选择import class,然后再build**