如下图,直接粘贴模块代码到Idea工程目录下,idea无法识别模块
1.这个时候需要导入模块,选择File-->Project Settings--->选择Moules。
![](https://img-blog.csdnimg.cn/img_convert/d156300652ff23c6ddfb5855095a416d.png)
2.选择加号,点击Import Moudle
![](https://img-blog.csdnimg.cn/img_convert/40dafff13ad2129c37b68c80fe2145b4.png)
3.选择你工程目录下复制的代码模块
![](https://img-blog.csdnimg.cn/img_convert/5c26064e51198bbe9c7f7f307efbe875.png)
4.然后单击OK,进入Import Moudle,选择Import moudle from external model,最后单击Create
![](https://img-blog.csdnimg.cn/img_convert/5ed1771a9c84b9bb179fa4667f6a6177.png)
如下图,直接粘贴模块代码到Idea工程目录下,idea无法识别模块
1.这个时候需要导入模块,选择File-->Project Settings--->选择Moules。
2.选择加号,点击Import Moudle
3.选择你工程目录下复制的代码模块
4.然后单击OK,进入Import Moudle,选择Import moudle from external model,最后单击Create