1buildscript { 2 repositories { 3 mavenCentral() 4 } 5 dependencies { 6 classpath 'com.android.tools.build:gradle:1.5.0' 7 } 8} 9 10apply plugin: 'com.android.library' 11 12android { 13 compileSdkVersion 23 14 buildToolsVersion "22.0.1" 15 16 defaultConfig { 17 minSdkVersion 16 18 targetSdkVersion 23 19 versionCode 1 20 versionName "1.0" 21 } 22 buildTypes { 23 debug { 24 minifyEnabled false 25 } 26 } 27 sourceSets { 28 main { 29 res.srcDirs = ['res'] 30 java.srcDirs = ['src'] 31 manifest.srcFile 'LibraryManifest.xml' 32 } 33 } 34} 35 36repositories { 37 mavenCentral() 38} 39 40dependencies { 41 compile 'com.android.support:support-v4:23.1.1' 42} 43