Notification texts go here Contact Us Buy Now!

Flutter How to make release version in Android Studio?

To create a release version of your Flutter app in Android Studio, follow these steps:

1. Open the Run Configuration:
  • Click on the "Run" menu and select "Edit Configurations."
  • In the "Run/Debug Configurations" dialog box, select your Flutter app from the list on the left.
2. Add the --release Flag:
  • In the "Arguments" field, add the --release flag.
  • This flag tells Flutter to build the app in release mode.
Note: Using the --release flag is not supported when building with the Android Emulator. 3. Build the APK:
  • Click the "Build" menu and select "Build APK."
  • This will generate a signed APK file that you can distribute to users.
Alternative Method:
  • Open the project directory in Android Studio.
  • Click on the "Build" menu and select "Generate Signed APK."
  • Follow the prompts to create a keystore and generate the APK.
Using Terminal:
  • Open the terminal and navigate to your Flutter project directory.
  • Run the following command:
flutter build appbundle --release --build-name=1.1.1 --build-number=3
  • Change the build name and build number to corresponding values of your release app versioning.
Run in Release Mode Directly from Android Studio:
  • Right-click on the green play button in the toolbar.
  • Select "Customize Toolbar."
  • Click on the "+" button and choose "Add Action."
  • Select "Plugins/Flutter/Run in Flutter release mode."
  • Delete the old Play button by selecting it and clicking on the "-" button.
Remember to set up code signing and versioning appropriately for your release build.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.