

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. | then update E:\flutter_apps\geodata\android\adle: │ │ Your project requires a newer version of the Kotlin Gradle plugin. Run gradle wrapper -gradle-version 5.0 to update the project to 5.0. Run with -info or -debug option to get more log output. In particular, you will need to use at least a 2.x version of the Shadow Plugin.

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. Open AS: File->Settings->Build, Execution, Deployment->Build Tools-> Gradle->Service directory path: (Change to folder you set above) ->Click ok. To ensure you are using the right version, please use the gradle wrapper scripts ( gradlew) at the root of the project to build (more Gradle wrapper info here) You can build the Gradle plugin (and associated libraries) with. 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. The Gradle Plugin is currently built with Gradle 4.0.
