DEV Community

Kaif Imran Shariff
Kaif Imran Shariff

Posted on

1

ext.kotlin_version = <'latest version'> error on Flutter (2024)

Solution:
the solution (that worked for me) for this is go to android > settings.gradle inside plugins brackets search for the line id "org.jetbrains.kotlin.android" version "xxxx" apply false replace 'xxxx' with latest kotlin version

i would recommend not to pick the top most version of kotlin as it might not be compatible with flutter, yet!

Elaboration:
the terminal prompts to go to build.gradle and do this ->
buildscript {
ext.kotlin_version = '1.5.0' //use latest
...
}

but apparently this won't work. in fact for me I didn't find buildscript{} section in my build.gradle

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay