I have a library and a Android app using Gradle and Android Studio. I can include the library directly in the project as following
compile project(\':library
In settings.gradle add
settings.gradle
include 'riz.com.mylibrary' project(':riz.com.mylibrary').projectDir = new File('C:\\Users\\Rizwan Asif\\AndroidStudioProjects\\mylibrary')
Then in build.gradle in the dependencies add
build.gradle
compile project(':riz.com.mylibrary')