1apply plugin: 'com.android.application' 2 3android { 4 compileSdkVersion 21 5 buildToolsVersion dataBindingConfig.buildToolsVersion 6 7 defaultConfig { 8 applicationId "com.android.databinding.testapp" 9 minSdkVersion 7 10 targetSdkVersion 21 11 versionCode 1 12 versionName "1.0" 13 } 14 dataBinding { 15 enabled = true 16 } 17 buildTypes { 18 release { 19 minifyEnabled false 20 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 } 22 } 23 24 packagingOptions { 25 exclude 'META-INF/services/javax.annotation.processing.Processor' 26 } 27 compileOptions { 28 sourceCompatibility JavaVersion.VERSION_1_7 29 targetCompatibility JavaVersion.VERSION_1_7 30 } 31 productFlavors { 32 api7 { 33 minSdkVersion 7 34 } 35 api14 { 36 minSdkVersion 14 37 } 38 } 39} 40 41dependencies { 42 compile fileTree(dir: 'libs', include: ['*.jar']) 43 compile "com.android.support:support-v4:+" 44} 45