Skip to content

馃悰 Can't get it build and recurring 'native assets' error聽#64

Open

Description

@escottgoodwin

Bug report

Describe the bug
I keep getting the 'native assets required' error and the app never builds.

I am using an M2 mac.

Steps to reproduce

Steps to reproduce the behavior:

I have enabled native assets with 'flutter config --enable-native-assets' several times, restarted editor and continue to get native assets required error when running 'flutter run --dart-define=GEMMA_8B_GPU_URI=...' (using a gemma model hosted with gcloud storage). I have it configured to run on my mac and my real iphone.

In VScode, when run the app with the 'play' button, it starts, I don't get a error, but it never finishes building. It stays launching. There is output in in the debug console on VScode.

Expected behavior

App runs

Sample project

Running the example app from the repo.

Activity

  1. escottgoodwin commented on Jun 13, 2024

    @escottgoodwin
    Author

    flutter config --list
    All Settings:
    enable-web: (Not set)
    enable-linux-desktop: (Not set)
    enable-macos-desktop: (Not set)
    enable-windows-desktop: (Not set)
    enable-android: (Not set)
    enable-ios: (Not set)
    enable-fuchsia: (Not set) (Unavailable)
    enable-custom-devices: (Not set)
    cli-animations: (Not set)
    enable-native-assets: true (Unavailable)
    enable-flutter-preview: (Not set) (Unavailable)

  2. craiglabenz commented on Jun 14, 2024

    @craiglabenz
    Collaborator

    Switch to the master channel and the native-asserts experiment should become available.

  3. mlleo commented on Jun 28, 2024

    @mlleo

    Any other way to solve if I use stable channel? For the production, using master channel could be kind of risky.....

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