Problem : – Your project requires a newer version of the Kotlin Gradle plugin in Flutter.

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 project/android/build.gradle: ext.kotlin_version = ”
But You have already changed the “ext.kotlin_version = ””
and still facing the issue, Here you can follow the steps to solve this problem,
Note :-Editing the Kotlin version in only gradle.build not helps in most cases and you have to edit also in your setting.gradle file and edit your Kotlin version according to your Gradle version

Step-1
Find the version of your gradle , in your Flutter project

Image description

Step-2
Visit this link https://kotlinlang.org/docs/gradle-configure-project.html#apply-the-plugin
and find suitable Kotlin version according to your Gradle version.

Image description

Step-3
go to project folder/android/gradle.build
and write this and if this is already written just edit it according to your gradle version

ext.kotlin_version = 'x.y.z'
Enter fullscreen mode
Exit fullscreen mode

in your build.gradle file

Image description

Now go to setting.gradle file and write the Kotlin version as same as you have written in build.gradle file

Image description

Thank you for reading this will for works for you


Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
How to optimize your wordpress website for mobile users in 2023 : a comprehensive guide. Oak lawn seo services.