buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' } } apply plugin: 'android-library' android { compileSdkVersion 19 buildToolsVersion "19.1" defaultConfig { minSdkVersion 7 targetSdkVersion 19 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } }