Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Generate an APK or App Bundle for your app: You can generate an APK or App Bundle using the following command in the terminal:
Step 1: Run in your terminal
flutter clean
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-24.png)
Step 2: Run your terminal
flutter pub get
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-23.png)
Step 3: run this command on your terminal
flutter build apk --target-platform android-arm,android-arm64 --split-per-abi
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-25-1024x81.png)
Step 4:
>Open your project in Android Studio. and go to Tools then Flutter -> Open Android module in Android Studio
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-26-854x1024.png)
Step 5:
After that go to the build section on the navbar and select Generate signed bundle/apk
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-27-663x1024.png)
Step 6:
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-28.png)
Step 7:
If you created already then you have to choose an existing
Choose the path where you want to store the key and set a password
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-33.png)
Or (When password already build then so this)
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-29.png)
Step 8:
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-30-1024x731.png)
You can see your Gradle Build is Running in right side corner
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-31.png)
Released app location
app-release.aab file created in this path C:\Users\name\android\app\release
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-32-1024x328.png)
Step 9:
drag “app-release. aab” upload in play console
![](https://www.devopssupport.in/blog/wp-content/uploads/2024/04/image-34.png)