I have a project like this:
Project | --Lib1 | --Lib2 | --Lib1 --Lib3 | --Lib1 Lib1 is a common dependency for Project, Lib2, and Lib3. How should I configure the build.gradle files?
For the projects dependent on Lib1 you should add it as a dependency in the following way:
dependencies { compile project(':Lib1') } This specific case is available in gradle user guide Section 7.3.3. Dependencies between projects or you can find a more comprehensive description of dependencies declarations in Section 51.4. Module Dependencies