Android emulator does not start

Asked 2 years ago, Updated 2 years ago, 475 views

I tried to start the android emulator by pressing the run button, but the following error occurred and it didn't work.

US>Error statement
Enter a description of the image here

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()
    }
}

android android-studio kotlin flutter dart

2022-09-30 22:05

1 Answers

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


2022-09-30 22:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.