android tutorial - Module dependencies in android | Developer android - android app development - android studio - android app developement
In a multi-project you can have a dependency with another module in your build. Example:
dependencies {
// Dependency on the "mylibrary" module from this project
compile project(":mylibrary")
}
click below button to copy code from our android learning website - android tutorial - team
gradle build
compile project(':mylibrary')