当项目没有问题,实体类的引用却出错报红。别慌,按下面步骤操作: File–>Invalidate Caches–> Invalidate and Restart 1. 希望对你有所帮助,ヾ(◍°∇°◍)ノ゙