1.file--->Project Structure 2.点击下图中叉号,点击yes 3.点击Add Content Root 4.选择项目,然后点击Apply ,接着点击OK。 5.点击Apply,OK