BUILD FAILED in 1m 21s
Running Gradle task ‘bundleRelease’… 82.6s
┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update │
│ D:FLUTTER_PROJECTStestlumiandroidbuild.gradle: │
│ ext.kotlin_version = ” │
└───────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task bundleRelease failed with exit code 1
PS D:FLUTTER_PROJECTStestlumiandroid>
i just to need to build the apk into appbundle to deploy the application.. but even though i update the kotlin version the error shows repeatly…any one know how to clear out the stupid error..
2
Answers
You would need to switch from
Project
toAndroid
folder. If you are using android studio, the update would happen automatically, if it does not (assuming you have switched from project to android), click onandroid project name -> android -> build.gradle
, it will begin updating every components needed.Add
ext.kotlin_version
and kotlin dependency in<app>/android/build.gradle
file.