This question might have been answered somewhere but couldn\'t find the appropriate one.
I want to know how can I create a common utility library project in Android Stud
Your build.gradle should look something like this
apply plugin: 'android-library'
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:18.0.0'
}
android {
compileSdkVersion 18
buildToolsVersion '18.1.1'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
Look at the first line