Flutter: Your project requires a newer version of the Kotlin Gradle plugin
Corrija o erro do Flutter 'Your project requires a newer version of the Kotlin Gradle plugin' atualizando ext.kotlin_version no seu arquivo build.gradle para a versão mais recente do Kotlin.
[!] 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
<project path>\android\build.gradle:
ext.kotlin_version = '<latest-version>'
Dá para resolver em dois passos simples:
- Passo 1: vá em https://kotlinlang.org/docs/releases.html#release-details e descubra a versão mais recente do Kotlin. No meu caso era a 1.9.0.
- Passo 2: abra o arquivo
build.gradle(em<project path>\android\build.gradle) e, logo no início (normalmente na segunda linha), você verá algo comoext.kotlin_version = '1.6.10'. Atualize essa linha para a versão mais recente do Kotlin. No meu caso ficaria assim:
buildscript {
ext.kotlin_version = '1.9.0'
[...]
Comments
Sign in with GitHub to comment. Reactions and replies thread back to the comments repo.