I have a workspace containing several different apps and a common library project that I am looking to convert from Eclipse to Android Studio and from Ant to Gradle. Curren
Just link https://issuetracker.google.com/issues/36967265
//in library Project build.gradle (lib):
apply plugin: 'com.android.library'
android {
publishNonDefault true
...
buildTypes {
release {
...
}
debug {
...
}
}
}
dependencies {
...
}
//in main Project build.gradle (application)
apply plugin: 'com.android.application'
android {
...
buildTypes {
release {
...
}
debug {
...
}
}
}
dependencies {
debugCompile project(path: ':libName', configuration: "debug")
releaseCompile project(path: ':libName', configuration: "release")
...
}