AVAILABLE: 5
I am new to Flutter programming and have created a demo application that runs well on Android and iOS devices. I would like to obtain the Flutter .apk and .ipa files. Can anyone help me with how to get these files from Flutter? Where can I find these files in the folder structure, or is there another solution?
Solution
For the APK (Android), you need to run the following command:flutter build apk --release
For the IPA (iOS), you need to run the following command:
flutter build ios --release
The --release
flag is optional because, by default, the release build is generated. If you need a debug build, simply replace --release
with --debug
.
You can find the generated APK or IPA files in the following location:
build/app/outputs/flutter-apk/app-release.apk