Latest Flutter requires you to have a later version of gradle.
What went wrong:
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_archive' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30
Latest Flutter requires you to have a later version of gradle.