Hello when i want to run my app in debug mode using F5 key i am getting this message:
[!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on
Here my pubspec.yaml
by the way i am using java and not kotlin so for that reason i dont understand why the message.
thank you so much your answer.
CodePudding user response:
By default flutter uses kotlin for android platform. Try to upgrade gradle version like this classpath
'com.android.tools.build:gradle:4.1.0'
and rebuild the project if not work then try to upgrade thekotlin version (ext.kotlin_version)
as well asgradle (com.android.tools.build:gradle) version
.CodePudding user response:
I answer my own question:
What i have done is the following steps:
- i opened my project in Android Studio and wait till it finish load.
- then go to File->Project Structure->Project
- then in Android Gradle Plugin Version change to 3.5.4 and Gradle Version to 6.7
- then Apply
- close android studio, close vscode
- re open vscode and fixed.