Go to the Kotlin Gradle Plugin version checkup page, and get the latest version from the page. Reviewing the Gradle build configuration Review the default Gradle build file ( adle) located in project/android/app to verify the values are correct: Under the defaultConfig block applicationId Specify the final, unique application ID minSdkVersion Specify the minimum API level on which the app is designed to run. Often, the flutter run/build tasks don’t work as desired, and in those cases, cleaning and building the Gradle again can be helpful. The Gradle build is one specific task that can be used to create APK files for your app. Here is the error message with the fix suggestion given by the Flutter SDK. Gradle is a tool that is used to automate tasks in android development. So if you build your project using android project, try doing it by flutter project. | then update E:\flutter_apps\geodata\android\adle: │ Flutter does not need a gradle in the project. Get more help at BUILD FAILED in 21s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm) Solution If you want run your project with -no-sound-null-safety so now you add this line your main.dart file in top (first line) with comment. You can use the master channel for now and then switch it back to dev. │ Your project requires a newer version of the Kotlin Gradle plugin. How to Solve Install Gradle Issue In Flutter If you change the flutter channel to master, you’ll see that it will run normally. Run with -info or -debug option to get more log output. Youll use this to see what version of gradle Flutter is using nowadays. Run with -stacktrace option to get the stack trace. Create a new temp project with the latest version of Flutter. flutter\packages\fluttertools\gradle\adle' as it does not exist. 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. 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.
0 Comments
Leave a Reply. |