Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not running #72

Open
javierc opened this issue Jan 3, 2020 · 5 comments
Open

Code not running #72

javierc opened this issue Jan 3, 2020 · 5 comments

Comments

@javierc
Copy link

javierc commented Jan 3, 2020

I followed the readme command line steps, but when I do "flutter run" I get:

Xcode build done. 29.0s
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Unable to load asset: assets/Milky Way/Milky Way.flr
#0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)

The app opens but none of the images/animations show up. I'm using xcode 11.3

@imdatceleste
Copy link

The issue seems to be with the space character in file/directory-names. Once you remove those and redo the nma-files, it should work.

@soymonitus
Copy link

Same error here, cannot build and if I rename the asset files I get more errors

@pavel-birdy
Copy link

I'm also getting this error. If I try to navigate I get the following error.

The getter 'favorites' was called on null.
Receiver: null
Tried calling: favorites

@pavel-birdy
Copy link

Everything is working after migrating the project to AndroidX

@gaohuan168
Copy link

  1. update asset name in pubspec.yaml:
    from
    • assets/Milky Way/
      to
    • assets/Milky_Way/
  2. update asset folder name:
    from assets/Milky Way
    to assets/Milky_Way
  3. update asset name in timeline.json,like this:
    {
    "source": "Milky_Way/Milky_Way.flr",
    "width": 1293,
    "height": 1210,
    "scale": 0.5,
    "bounds":[-1616.5, -115.0, -323.5, 1095.0]
    }
  4. some asset like "Darwin_2.nma" using "Darwin 2.png".
    update "Darwin_2.nma"
    from "Darwin 2.png"
    to "Darwin_2.png"
    using tool like EmEditor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants