Skip to content

Cannot build app.so with Dart 2.9.2: "Can't load Kernel binary: Invalid SDK hash" #89

Closed
@apiraino

Description

@apiraino

Hey,

I've updated the Dart+Flutter SDK to the very latest stable:

$ flutter --version
Flutter 1.20.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 216dee60c0 (9 days ago) • 2020-09-01 12:24:47 -0700
Engine • revision d1bc06f032
Tools • Dart 2.9.2

I can compile the kernel snapshot, but I can't compile anymore the app.so.

$ gen_snapshot_linux_x64 \
  --causal_async_stacks \
  --deterministic \
  --snapshot_kind=app-aot-elf \
  --elf=build/app.so --strip \
  --sim_use_hardfp \
  --no-use-integer-division build/kernel_snapshot.dill 
Can't load Kernel binary: Invalid SDK hash.

Can you detail a little bit how the gen_snapshot_linux_x64 binary you provide is generated and why it fails? Do I have to match the exact same Dart SDk version as yours?

Thanks!

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