settings.gradle 配置指定路径 module
博主博客
- https://blog.uso6.com
- https://blog.csdn.net/dxk539687357
一、正常情况, 导入本项目的模块只需要使用
include ':app', ':library'
即可。
二、但是当需要导入其他项目的模块, 可以使用相对路径指定
include ':app', ':library'
project(':thirdlibrary').projectDir = file('../Demo/thirdlibrary')
在 settings.gradle
中导入后需要在 :app
中的 build.gradle
中加入
implementation project(':thirdlibrary')
才能使用模块。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)