1 buildscript { 2 ext { 3 compileSdkVersion = 27 4 minSdkVersion = 21 5 targetSdkVersion = 27 6 7 kotlinVersion = '1.2.10' 8 supportLibVersion = '27.0.2' 9 } 10 repositories { 11 google() 12 jcenter() 13 } 14 dependencies { 15 classpath 'com.android.tools.build:gradle:3.0.1' 16 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" 17 } 18 } 19 20 allprojects { 21 repositories { 22 google() 23 jcenter() 24 } 25 } 26 27 task clean(type: Delete) { 28 delete rootProject.buildDir 29 }