How can I build an apk for my flutter app and prepare it to release?

When you are creating a new flutter app for the first time, usually, debug size is a high size (about 100 MB and more). Then after finishing your app you must reduce the app size and make it ready to release via building apk, ios, or bundle formats.

In this post, I want to explain that how can you reduce the debug size and build an apk format for your app.

In this regard, there are two ways to build an apk for your flutter app in the android studio:

  1. IDE build settings
  2. Terminal command
  1. IDE build settings: At the top of the android studio’s toolbar, go through this path: Biuld< Flutter<Biuld APK

Then wait for a few minutes until the android studio makes the apk of your flutter app.

2. Terminal command: Type this command in the terminal:

flutter build apk — — release

Then again wait for a few minutes until the android studio makes the apk of your flutter app.

Finally, go to the “build” folder in your app folder (drive C in windows) and send the “app-release.apk” file to your mobile and install it. If you check the size of your app, you can figure out its size is reduced.

If you find this article helpful please share this page with your friend to improve the SEO of my Medium account.

Keep in touch with me (Melanee):

https://github.com/Melanee-Melanee

Thanks for reading.

--

--

--

Data scientist in pharmaceutical, medical industries | Chemist

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Android App Store Alternatives — the Developer View

Brave World Update Announcement

Generating DeepLinks at compile time Android

Kotlin Coroutines in Android — Unit Test

Kotlin Coroutines in Android — Suspending Functions

Updating data in an Android RecyclerView

How to make HTTP requests in Flutter

Resolve Android Auto Connection Issues on Pixel 5 With These Steps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Melanee

Melanee

Data scientist in pharmaceutical, medical industries | Chemist

More from Medium

One language stop for App Development — Dart!

TimeoutException while using Geolocator in Flutter

How to take a photo and save it to gallery in Flutter mobile app

Why Flutter is the next big thing in mobile app development!