我的2个gradle项目具有以下Windows目录结构:
bitbucket/
users-dashboard/
backend/
users-data/
build.gradle
settings.gradle
common-util/
common-util/
build.gradle
settings.gradle
我想您将 common-util项目(作为依赖项)用于 users-data 项目。
我正在尝试以下方法而没有成功!
users-data / settings.gradle
include ':common-util'
project(':common-util').projectDir = new File('../../../common-util/common-util')
users-data / build.gradle
dependencies {
compile project(':common-util')
}
common-util / settings.gradle
rootProject.name = 'common-util'
请帮助!
出现此错误:
Project with path ':common-util' could not be found in project ':users-data'.