Use this if you are using latest Android Studio.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.5.0' } }
apply plugin: 'android-library'
android { compileSdkVersion 23 buildToolsVersion "23.0.2"
defaultConfig { minSdkVersion 15 targetSdkVersion 21 } sourceSets.main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] res.srcDirs = ['res'] jniLibs.srcDirs = ['libs'] }
}
It worked for me :)
Use this if you are using latest Android Studio.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
apply plugin: 'android-library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
}
It worked for me :)