RPM
RPM

Reputation: 3436

Dependendant project's settings.gradle is not read

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

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

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

Related Questions