Andres Aergiase
Andres Aergiase

Reputation: 1

how do I make my app into apk using flutter

I am trying to make my app into apk, but whenever I run flutter build apk --release, this error shows up

FAILURE: Build failed with an exception.

This error shows up

Upvotes: 0

Views: 36

Answers (1)

gtxtreme
gtxtreme

Reputation: 3566

Flutter apps require a minimum of Kotlin Plugin 1.5.3 to run

To fix this you can do the following

Open /android/build.gradle, and change ext.kotlin_version:

buildscript {
  ext.kotlin_version = '1.3.50' // Remove this.    
  ext.kotlin_version = '1.5.31' // Add this

More solutions and information about this can be found here

Upvotes: 0

Related Questions