So I'm trying to build the apk for my application using the command flutter build apk
but the below error occurs every single time:
As of now, the latest kotlin version is 1.9.0, so I did update the version to that in my build.gradle
but the error seems to be persisting.
Here is my root level build.gradle
file:
buildscript {
ext.kotlin_version = '1.9.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.google.gms:google-services:4.3.15'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}