简体   繁体   中英

Issue with Kotlin Gradle plugin in android studio

I just upgrade Android studio to the last version (3.2.1) and an issue occurred while charging my project. The Kotlin Gradle plugin seems to be incompatible with the current Android Gradle plugin version, or something like that.

Here's the message displayed:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'Projetpelican' is using version 1.2.41.

I can't find any satisfying answer on the web so please enlight me with your knowledge.

PS. A similar topic had already been created but it does not fully answer the question...

in your build gradle change 1.2.41 to following

         buildscript {
                   ext {
                     kotlin_version = '1.3.10'

I hope this help you

Update your Kotlin version.

Under your project-level build.gradle (the one outside of the app folder), find the ext.kotlin_version variable and set it to '1.3.11' .

When maintaining an Android project, you need to keep an eye out for yellow-highlighted dependencies. Android Studio doesn't update them for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM