I’m already using the latest version of Kotlin Gradle but I keep getting this error:
buildscript {
ext.kotlin_version = '1.8.20'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update │
│ /Users/sinamn75/Documents/NabzAfzar/NabzAfzar_flutter/android/build.gradle: │
│ ext.kotlin_version = '<latest-version>'
I used a lot of different versions on projects and packages but nothing seems to work.
2
Answers
OMG, it seems a bug in flutter, I was entering my keystore password wrong and it pointed to something completely different, It was never about kotlin version, It was about keystore password...
Have you tried to clean your gradle cache folder?
How to clear gradle cache?
I had similar problem, cleaning cache solve it