如果bulid的clean rebulid project都没有效果,可以尝试下面的做法 file>invalidate caches/restart,重启之后点击刷新按钮sync project with Gradle files