I tried to start the android emulator by pressing the run button, but the following error occurred and it didn't work.
I uploaded the kotlin version by referring to the post below, but it didn't work.
Your project requires a new version of the Kotlin Gradle plugin. (Android Studio) - Stack Overflow
Modified code
/Users/fujitayuusaku/Private/sample/flutter_app/my_first_app/android/build.gradle
buildscript{
ext.kotlin_version = '1.7.0' // Change here
repositories {
google()
mavenCentral()
}
dependencies {
classpath'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
Hello. Is it solved?Why don't you refer to this site?
https://minpro.net/flutter-2-10-your-project-requires-a-newer-version-of-the-kotlin-gradle-plugin
© 2024 OneMinuteCode. All rights reserved.