skip to Main Content

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


  1. You would need to switch from Project to Android 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 on android project name -> android -> build.gradle, it will begin updating every components needed.

    Login or Signup to reply.
  2. Add ext.kotlin_version and kotlin dependency in <app>/android/build.gradle file.

    buildscript {
        ext.kotlin_version = '1.5.0' //use latest
        ...
    }
    
    dependencies { 
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        ...
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search