1. Home
  2. Food Delivery Management ...
  3. Delivery Boy Mobile App
  4. Run & Build

Run & Build

Run the Application

1- In the target selector, select an Android device for running the app. If none are listed as available, select Tools> Android > AVD Manager and create one there. For details, see Managing AVDs.

Click the run icon in the toolbar, or invoke the menu item Run > Run. Locate the main Android Studio toolbar:

2- If you don’t use Android Studio or IntelliJ you can use the command line to run your application using the following command

flutter run

Build and Install App

1- After you make all your changes and customizations save all your project, Open the console, navigate to your project folder and execute the following command to build your app

flutter build apk --release

If you are deploying the app to the Play Store, it’s recommended to use app bundles or split the APK to reduce the APK size.
To generate an app bundle, run:

flutter build appbundle --target-platform android-arm,android-arm64,android-x64

Learn more on https://developer.android.com/guide/app-bundle
To split the APKs per ABI, run:

flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

Learn more on https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split

You should get the APK file in the build/output/apk folder, to install your application on your connected device run the following command

flutter install

2- If you want to upload your application on Google Play you must sign it before uploading, generate a signing key by running the following command:

keytool -genkey -v -keystore android/app/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key

3- Open /android/key.properties and edit the following attributes after that re-build your application:

storePassword=<Your Key Password>
keyPassword=<Your Key Password>
keyAlias=key
storeFile=key.jks
Facebook Comments

How can we help?