右键项目,选择Mark Directory as–>Sources Root.等待一会儿再次尝试好用了。 原文链接:https://blog.csdn.net/third_/article/details/80454442