failed to resolve glide, now 3rd-party Gradle plug-ins may be the cause

After two edits,,, finally I solved my problem by adding this

android{
compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

and Gradle file

buildscript {
    ext.kotlin_version = '1.2.30'
    ext.roomVersion = '1.0.0'
    repositories {
        mavenCentral()
        jcenter()
        google()
        maven { url 'https://maven.google.com' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
        classpath 'com.google.gms:google-services:3.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenCentral()
        jcenter()
        google()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Edit

this helps me to solve my problem of TaskExecutionException https://stackoverflow.com/a/47387435/2809351


Upgrade the version of kotlin "1.2.31" add this dependencies in your app level gradle file :

android {
  ...

  sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
  }
}

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib"
}

Don't forgot add plugin :

apply plugin: 'kotlin-android'

Remove old dependency of jetbrains

implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

It will helps you :)