1 apply plugin: 'com.android.application' 2 3 // The sample build uses multiple directories to 4 // keep boilerplate and common code separate from 5 // the main sample code. 6 List<String> dirs = [ 7 'main'] // main sample code; look here for the interesting stuff. 8 9 android { 10 compileSdkVersion 26 11 buildToolsVersion '26.0.2' 12 13 defaultConfig { 14 minSdkVersion 26 15 targetSdkVersion 26 16 } 17 18 compileOptions { 19 sourceCompatibility JavaVersion.VERSION_1_8 20 targetCompatibility JavaVersion.VERSION_1_8 21 } 22 23 sourceSets { 24 main { 25 dirs.each { dir -> 26 java.srcDirs "src/${dir}/java" 27 res.srcDirs "src/${dir}/res" 28 } 29 } 30 androidTest.setRoot('tests') 31 androidTest.java.srcDirs = ['tests/src'] 32 } 33 34 compileOptions { 35 sourceCompatibility JavaVersion.VERSION_1_8 36 targetCompatibility JavaVersion.VERSION_1_8 37 } 38 } 39 40 dependencies { 41 implementation "com.android.support:support-v4:26.1.0" 42 implementation "com.android.support:support-v13:26.1.0" 43 implementation "com.android.support:cardview-v7:26.1.0" 44 implementation "com.android.support:appcompat-v7:26.1.0" 45 implementation 'com.android.support:design:26.1.0' 46 implementation 'com.android.support.constraint:constraint-layout:1.0.2' 47 implementation group: 'com.google.guava', name: 'guava', version: '22.0-android' 48 } 49