1 2 buildscript { 3 repositories { 4 jcenter() 5 } 6 7 dependencies { 8 classpath 'com.android.tools.build:gradle:2.3.3' 9 } 10 } 11 12 apply plugin: 'com.android.application' 13 14 repositories { 15 jcenter() 16 maven { 17 url 'https://maven.google.com' 18 } 19 } 20 21 dependencies { 22 compile "com.android.support:support-v4:26.1.0" 23 compile "com.android.support:support-v13:26.1.0" 24 compile "com.android.support:cardview-v7:26.1.0" 25 compile "com.android.support:appcompat-v7:26.1.0" 26 compile 'com.android.support:design:24.0.0' 27 compile 'com.google.android.gms:play-services-wearable:11.4.0' 28 compile 'com.android.support:support-v13:26.1.0' 29 wearApp project(':Wearable') 30 } 31 32 // The sample build uses multiple directories to 33 // keep boilerplate and common code separate from 34 // the main sample code. 35 List<String> dirs = [ 36 'main', // main sample code; look here for the interesting stuff. 37 'common', // components that are reused by multiple samples 38 'template'] // boilerplate code that is generated by the sample template process 39 40 android { 41 42 compileSdkVersion 26 43 44 buildToolsVersion "26.0.1" 45 46 defaultConfig { 47 minSdkVersion 18 48 targetSdkVersion 25 49 } 50 51 compileOptions { 52 sourceCompatibility JavaVersion.VERSION_1_7 53 targetCompatibility JavaVersion.VERSION_1_7 54 } 55 56 sourceSets { 57 main { 58 dirs.each { dir -> 59 java.srcDirs "src/${dir}/java" 60 res.srcDirs "src/${dir}/res" 61 } 62 } 63 androidTest.setRoot('tests') 64 androidTest.java.srcDirs = ['tests/src'] 65 66 } 67 68 } 69