解决方法:右键模块所在文件夹,选择make directory as ,选择excluded或者sources root,即可。 转载于:https://www.cnblogs.com/yanxiatingyu/p/10092454.html