Gradle project refresh failed Error: Cannot find JAR 'kotlin-compiler-embeddable-1.1.3-2.jar'

故事扮演 提交于 2021-01-29 06:24:34

问题


I created a new project and getting following Gradle Sync error.

Gradle 'ProjectX' project refresh failed Error: Cannot find JAR 'kotlin-compiler-embeddable-1.1.3-2.jar' required by module 'gradle-kotlin-dsl' using classpath or distribution.

I am not using 'Kotlin' and using Android 4.0(IceCreamSandwich). Below is my build.gradle

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()

    }
}

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

来源:https://stackoverflow.com/questions/55313977/gradle-project-refresh-failed-error-cannot-find-jar-kotlin-compiler-embeddable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!