Intellij 导入项目作为lib
新建module 然后再添加依赖关系
不然系统编译的时候会找不到依赖项目的路径
StackOverFlow的回答
Try adding your src as modules.
- File > Add Module
- Create Module from Existing Sources ->
- your_src_path_top_level
- Next > Next > Finish
- File > Project Structure > Modules > YourApp
- plus button > Module Dependency >
- your_lib_you_added_earlier
Use the up/down arrows to move to the bottom of the list
成功后如下图的样子