Can't load Kernel binary: Invalid SDK hash.
I am getting hit by this error EVERY SINGLE DAY. Sometimes 3 times a day. The only solution that works is deleting it and reinstalling. That kinda beats the purpose of this tool. I am saving disk space on multiple Flutter versions but wasting so much internet data redownloading it every time. This is happening with the latest release of puro.
I love this tool but this is very frustrating as this randomly happens while I am in middle of debugging and I have restart everything. It is very disruptive.
Please fix this! 🙏🏻
I am on Macbook M1 Pro. Puro 1.4.11
Hi,
I was able to reproduce the same issue. Steps:
- Invoke any flutter command.
- interrupt/terminate it via ctrl+c.
- Boom next time you get invalid SDK hash.
@BirjuVachhani could you please confirm with above steps once at your end?
Yes, that's what happens to me as well.
Any update on this?
One insight I can give here is this:
- I use puro on my macbook (M1 Pro) which works just fine. I see no issues at all. Puro is installed on the same storage drive as the OS.
- I used to use puro on my M4 mac mini where I am facing this issue. Puro was installed on external SSD which always stays connected. Then I tried installing puro on the same storage disk as the OS but the issue persists.
I hope this helps!
This implies the flutter engine is getting out of sync with the cached snapshot, which is weird, I will try to take a look.