The Android Gradle plugin supports only Kotlin Gradle plugin version x.x.xx and higher. Project 'Projectname' is using version x.x.x-x.

CODEDRAGON Development/Android

반응형


 

 

 

에러메시지

The Android Gradle plugin supports only Kotlin Gradle plugin version x.x.xx and higher. Project 'Projectname' is using version x.x.x-x.

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'Projectname' is using version 1.1.4-2.

 

 

 

 

해결방법

build.gradle (Project) 코틀린 버전을 상위 버전으로 변경해 줍니다.

buildscript {

    ext.kotlin_version = '1.1.4-2'

 

    repositories {

        google()

        jcenter()

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:3.2.0'

        classpath 'io.realm:realm-gradle-plugin:2.2.0'

        classpath 'com.google.gms:google-services:3.1.0'

        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

    }

}

 

buildscript {

    ext.kotlin_version = '1.2.71'

 

    repositories {

        google()

        jcenter()

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:3.2.0'

        classpath 'io.realm:realm-gradle-plugin:2.2.0'

        classpath 'com.google.gms:google-services:3.1.0'

        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

    }

}

 

 


 


 




 

 

 

 

Kotlin - Using Gradle

https://kotlinlang.org/docs/reference/using-gradle.html


 



반응형