

Go to the Kotlin Gradle Plugin version checkup page, and get the latest version from the page. Here is the error message with the fix suggestion given by the Flutter SDK. Version info: Gradle 2.2.1 Android Gradle plugin 1.0.1 Robolectric Gradle plugin 0.14.1 JUnit 4.10 Robolectric 2. | then update E:\flutter_apps\geodata\android\adle: │ │ Your project requires a newer version of the Kotlin Gradle plugin. Run with -info or -debug option to get more log output. When you open the Android project in Android Studio, a Plugin Update Recommended message will appear. Run with -stacktrace option to get the stack trace.

Error Message: FAILURE: Build failed with an exception.Įxecution failed for task ':fluttertoast:compileDebugKotlin'. This error occurs, when you have an older version of kotlin at adle. Try either to upgrade Android Studio or change AGP version to the stable version like for example 7.2.1 in the projects adle file.

If you are getting "your project requires a newer version of the kotlin gradle plugin" error while running your Flutter app, see the solution below to solve this error in Flutter.
