一. 效果
二. 實(shí)現(xiàn)步驟
1.選中項(xiàng)目名,右鍵新建一個(gè)module
Paste_Image.png
2.選擇 android library 然后next
Paste_Image.png
3.填寫依賴module名字 然后finish
Paste_Image.png
4.同樣的方法新建module core2
Paste_Image.png
5.新建文件夾 library
Paste_Image.png
Paste_Image.png
6.鼠標(biāo)左鍵按住core core2將其拖入library文件夾
Paste_Image.png
Paste_Image.png
7.修改settings.gradle 中的兩個(gè)依賴包的地址
修改前
Paste_Image.png
修改后
Paste_Image.png
8.添加依賴 大功告成
Paste_Image.png
Paste_Image.png
最后的福利