博主博客

settings.gradle 配置指定路径 module

一、正常情况, 导入本项目的模块只需要使用
include ':app', ':library'即可。

二、但是当需要导入其他项目的模块, 可以使用相对路径指定

	include ':app', ':library'
	project(':thirdlibrary').projectDir = file('../Demo/thirdlibrary')

settings.gradle 中导入后需要在 :app 中的 build.gradle 中加入
implementation project(':thirdlibrary') 才能使用模块。