buildscript { repositories { mavenCentral() mavenLocal() } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' } } apply plugin: 'android-library' android { compileSdkVersion 19 buildToolsVersion '19.1.0' sourceSets { main { manifest.srcFile 'src/AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } }