Замените на код ниже и предоставьте соответствующую версию для каждого kotlinVersion, supportLibraryVersion
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
ext {
kotlinVersion = ""
supportLibraryVersion = ""
}
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.raywenderlich.isell"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
androidExtensions {
experimental = true
}
}
dependencies {
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion"
// AppCompat
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
// Design Support Library
implementation "com.android.support:design:$supportLibraryVersion"
// CardView
implementation "com.android.support:cardview-v7:$supportLibraryVersion"
}
Надеюсь, это поможет вам.