File -> settings -> Directories -> Add Content Root 中添加你的工程目录就行了