Error "Your project requires a newer version of the Kotlin Gradle plugin" in Android Studio when building a Flutter project
Hello everyone. I'm new to Android development and writing in Flutter. Suddenly, when trying to build the project (command `flutter run`) or simply open the Android part of the project in Android Studio, an error appears:\n\n```\nYour project requires a newer version of the Kotlin Gradle plugin.\n```\n\nI'm using Flutter 3.10, Android Studio Giraffe. Here is my `android/build.gradle`:\n\n```kotlin\nbuildscript {\n ext.kotlin_version = '1.7.10'\n repositories {\n google()\n mavenCentral()\n }\n dependencies {\n classpath 'com.android.tools.build:gradle:8.0.0'\n classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"\n }\n}\n```\n\nAnd `android/app/build.gradle`:\n\n```kotlin\nandroid {\n compileSdkVersion 34\n ...\n}\n```\n\nI updated the SDK, installed pos
No answers yet.
Log in to leave an answer