Avatar ·

Error "Your project requires a newer version of the Kotlin Gradle plugin" in Android Studio with Flutter

Hello, colleagues! I'm new to Kotlin and Android development, building my first Flutter application. Today I encountered an unclear error when trying to build the project in Android Studio. After updating the Flutter SDK and dependencies in pubspec.yaml, when running `flutter run` or opening the project in Android Studio, I get the message: ``` Your project requires a newer version of the Kotlin Gradle plugin. ``` I'm using Android Studio Hedgehog, Flutter 3.16, and my project was created using the `flutter create` template. I haven't manually changed the build.gradle files, but I might have broken something when adding packages. Here is what my `android/build.gradle` looks like: ```kotlin buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() } dependenc