-2
//this is my build.gradle file, plz help.
def var = buildscript {
    ext.kotlin_version = '1.2.30'
    repositories {
        google()
        maven { url "https://maven.google.com" }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle- 
        plugin:$kotlin_version"
    }
    allprojects {
        repositories {
            google()
            jcenter()
        }
    }
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

I tried updating plugins too. It tells that my build configuration is incorrect and anyway I build shows error.this is config. setting img

debug type is set to auto and advanced profiling is enabled.

coudy.one
  • 1,382
  • 12
  • 24

1 Answers1

0

Remove following lines from your build.gradle file:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

Click on Try again available at top

try again

Sagar
  • 23,903
  • 4
  • 62
  • 62