apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { applicationId "com.example.android.cardview" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { java.srcDirs "src/main/java" res.srcDirs "src/main/res" } androidTest.setRoot('tests') androidTest.java.srcDirs = ['tests/src'] } } dependencies { implementation'com.android.support:cardview-v7:27.0.2' implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$rootProject.ext.kotlinVersion" androidTestImplementation "com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoVersion" }