apply plugin: 'android-library' android { compileSdkVersion 17 buildToolsVersion '18.1.1' sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } archivesBaseName = 'PullToRefresh'