Skip to content

Flutter 3.38+: “Unable to load asset: AssetManifest.json” #22

@HyeonKayh

Description

@HyeonKayh

I am getting the following error on Flutter 3.38+:

Unhandled Exception: Unable to load asset: "AssetManifest.json".

It appears to be caused by this code, which always tries to load the JSON manifest:

bundle.loadString('AssetManifest.json');

According to the Flutter documentation, AssetManifest.json is planned for removal and will no longer be generated in future releases (starting from the fourth stable release after Flutter 3.19).
Reference: https://docs.flutter.dev/development/ui/assets-and-images#assetmanifestjson-file-creation-policy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions