Dart Error: Can’t load Kernel binary解决

IOS真机时报错

Can't load Kernel binary: Invalid kernel binary format version.

解决方法

两个方法都可以试一下

//1
rm FLUTTER_ROOT/bin/cache/flutter_tools.stamp

//2
删除Flutter安装目录中的bin/cache目录,然后尝试flutter doctor -v并重试

上边的完后

flutter clean
fluter build ios