先 clean project项目,再 build project如果步骤一不好使,尝试invalidate cache / restart如果invalidate cache / restart也不好使的话,就把项目目录下面的 .idea 文件夹和 .gradle 文件夹,然后重新打开 AS 。