Khamidjon Khamidov
Khamidjon Khamidov

Reputation: 8979

Can't load Kernel binary: Invalid SDK hash. in fvm flutter, linux

Once I change the global version of fvm, the following error occurs:

$ fvm
Can't load Kernel binary: Invalid SDK hash.
/Users/lukepighetti/.pub-cache/bin/fvm: line 15: pub: command not found

Upvotes: 1

Views: 1710

Answers (3)

moldstadt
moldstadt

Reputation: 362

Neither of the older solutions worked for me. To resolve on Mac, I had to do the following:

rm -rf ~/.pub-cache
dart pub global activate fvm

Upvotes: 0

无夜之星辰
无夜之星辰

Reputation: 6178

It works for me when I execute dart pub global activate fvm.

Upvotes: 4

Khamidjon Khamidov
Khamidjon Khamidov

Reputation: 8979

oh ok, this doesn't seem to be an FVM error, as it happens before running FVM.

I would try doing a dart pub global activate fvm again, and/or a dart pub cache repair.

Also, only way to avoid doing doing the cache repair every time is to use fvm per project and try to leave the global version the same.

Upvotes: 1

Related Questions