一、在setting.gradle中添加代碼:
include(":xxx")
project(':xxx').projectDir = new File('G:\\xx\\xx\\xx\\xx\\xx')
二抖甘、在build.gradle中,添加代碼
dependencies {
....
implementation project(':xxx')
}
三、 調整目錄路徑
include(":XXX:XXX")
project(':XXX:XXX').projectDir = new File('G:\\xx\\xx\\xx\\xx\\xx')