Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between flutter build bundle and appbundle in flutter?

I find little to no information on what's the difference between these two

flutter build bundle
flutter build appbundle

When should I use one over the other?

like image 525
Joel Broström Avatar asked Nov 16 '25 13:11

Joel Broström


1 Answers

flutter build appbundle

builds the 'app bundle' that is uploaded to the Google Play store. The app bundle is basically a bundle of apk files. When a user installs your app, Google Play will serve the optimal apk to the device. The app bundle is compressed into a aab file (Android app bundle).

flutter build bundle 

builds a special 'app bundle' archive from the list of assets in your pubspec.yaml that your app can read from at runtime. The builder places this in the flutter_assets folder in the build directory.

So basically they build different stuff. flutter build appbundle is pretty much unavoidable if you're building an app for release on the Play Store.

However, I have never needed to use flutter build bundle. I have never needed to build an individual assets folder as it's incorporated within an appbundle build.

like image 196
Simon Hutton Avatar answered Nov 18 '25 07:11

Simon Hutton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!