Flutter,Your project requires a newer version of the Kotlin Gradle plugin


到Kotlinglang.org网站,吧kotlin的最新版本填写到projectname/andorid/build.gradle里面即可解决。

buildscript {
    ext.kotlin_version = '1.6.20'
    repositories {
        google()
        mavenCentral()
    }

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin.                                                                                           │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update D:\LaptopBackup\Project\Flutter\e_shop\android\build.gradle: │
│ ext.kotlin_version = '<latest-version>'                                                                                                                          │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1

 

https://kotlinlang.org/docs/gradle.html#plugin-and-versions

 

plugins { kotlin("<...>") version "1.6.20" }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM