DEV Community

Kaif Imran Shariff
Kaif Imran Shariff

Posted on

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)