Skip to content

Fetch API cannot load file:///xxxxx/assets/FontManifest.json. URL scheme “file” is not supported (on android device) #128760

@JiaoLiu

Description

@JiaoLiu

Is there an existing issue for this?

Steps to reproduce

  1. run flutter build web.
  2. copy build/web dir to android phone.
  3. use a webview load web/index.html

Expected results

show the main.dart screen.

Actual results

inspect the device, found error "Fetch API cannot load file:///xxx/assets/FontManifest.json. URL scheme “file” is not supported"
& blank screen.

build web under flutter 3.7.0 everything is ok.
flutter 3.10.x error & not work.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: assetsPackaging, accessing, or using assetsc: regressionIt was better in the past than it is nowd: stackoverflowGood question for Stack Overflowengineflutter/engine related. See also e: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions