Skip to content

Stocks example: 404 on resolving image assets #7

Description

@tobrun

When running the sample application, material icons seem to be missing from the UI

device-2015-05-01-204028

Verifying the output in the terminal, I noticed the lines with a 404 code:

screen shot 2015-05-01 at 20 35 06

I went to check the mentioned paths and they were indeed non-exisitent. I stumbled on this python script to download the assets. In the screenshot below you can see the result after execution:

screen shot 2015-05-01 at 20 48 45

Running the application and remove/reinstalling the application resulted in the same 404 messages.

Activity

  1. changed the title [-]SkyExample.apk 404 on resolving image assets[/-] [+]Stocks example: 404 on resolving image assets[/+] on May 1, 2015
  2. tobrun commented on May 1, 2015

    @tobrun
    Author

    I noticed that the path mentioned in terminal is not the same as path of the resource:

    packages/sky/lib/assets/material-design-icons/navigation/2x-web

    Versus

    /packages/sky/assets/material-design-icons/navigation/2x-web

  3. abarth commented on May 2, 2015

    @abarth
    Contributor

    @eseidelGoogle: Would you be willing to take a look at this on issue?

  4. abarth commented on May 2, 2015

    @abarth
    Contributor
  5. tobrun commented on May 3, 2015

    @tobrun
    Author

    To be sure I did a new test today:

    • clean git clone of sky sdk
    • took the steps from README.md to get the stocks example running
    • noticed that the icons were missing
    • invoked the script @abarth mentioned
    • removed and clean installed the application

    I'm seeing this output:

    screen shot 2015-05-03 at 10 33 27

    When verifying the path I'm seeing no files in the assets folder:

    screen shot 2015-05-03 at 10 34 17

  6. eseidelGoogle commented on May 4, 2015

    @eseidelGoogle
    Contributor

    Hi, sorry my team has been out of the office since the summit.

    As adam mentioned, there is a script included with the pub package which should download these icons for you. For example:

    cd examples/stocks
    pub get
    ./packages/sky/download_material_design_icons
    ./packages/sky/sky_tool start

    Should start it with all the icons there.

  7. abarth commented on Nov 7, 2015

    @abarth
    Contributor

    We've addressed this issue by introducing an FLX file that contains all the assets your app needs.

  8. github-actions commented on Sep 7, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on Sep 7, 2021
  10. added a commit that references this issue on May 7, 2026
    b78b863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions