The import XXX cannot be resolved


选择project --> clean后,OK。
如果还不行,删掉全部import,然后按alt+/提示,逐个导入。

原文地址:https://www.cnblogs.com/zj0208/p/6145578.html