flutter build appbundle

This command assists you by validating that your project
is properly set up to build deferred components apps.
By default, the build fails if the validator detects
any issues and guides you through suggested changes to fix them.

The
    flutter build appbundle command
    runs the validator and attempts to build the app with
    gen_snapshot instructed to produce split AOT shared libraries
    as separate .so files. On the first run, the validator will
    likely fail as it detects issues; the tool makes
    recommendations for how to set up the project and fix these issues.

    The validator is split into two sections: prebuild
and post-gen_snapshot validation. This is because any
validation referencing loading units cannot be performed
until gen_snapshot completes and produces a final set
of loading units.