Reputation: 3436
I have an Android Project where I have multiple dependencies. The structure of my project is as follows:
My question is this : Is the settings.gradle of libB not read at all when building libC? Is there a way to make it read that settings.gradle file?
Upvotes: 0
Views: 1398
Reputation: 363935
You should have a structure like this:
root
build.gradle
settings.gradle
libA
build.gradle
libB
build.gradle
libC
build.gradle
In settings.gradle
include ':libA' , ':libB' , ':libC'
In libB/build.gradle
dependencies {
compile project(':libA')
}
In libC/build.gradle
dependencies {
compile project(':libB')
}
Upvotes: 1