Flutter app Error while initializing the Dart VM: Wrong full snapshot version, expected '8343.....' found '46b2....'
Solution 1
I have experienced this error and none of the above solution worked for me infact the option of clearing the flutter/bin/cache messed the entire vscode IDE. So I deleted the entire flutter SDK and installed fresh new SDK from flutter official website. After this installation everything was working fine.
Solution 2
Do git clean -xffd
in flutter installed directory(repo).
If it's a Flutter project first try flutter clean
if did not work, try above git
command.
If still not solved, delete everything inside /flutter/bin/cache
and try.
If still not :D,
Do flutter channel master
, flutter upgrade
, and flutter clean
. If nothing worked please add a comment below.
If you are in Dart environment out flutter/bin/cach/dart-sdk, you may be not upgraded dart-sdk. This happen to me Dart 2.5.0 with chololate installed. So I just did choco upgrade dart-sdk
Solution 3
After deleting the flutter/bin/cache and running flutter clean
, I couldn't get the dart sdk to load until I launched the flutter console (flutter_console.bat) that can be found in the directory where you installed flutter and ran flutter doctor
there. That solved the problem.
Solution 4
I also have experienced the same issue. I upgraded the flutter version and later downgraded and encounter this issue maily on IOS adhoc build.
Solution:
Delete out $FLUTTER_HOME/bin/cache
and run flutter doctor.
This will solve.
Solution 5
I have exactly this problem i Solve it how ? by these comments you just update flutter
flutter channel beta
,
flutter upgrade
you should upgrade your dart sdk
So try this command :
choco install dart-sdk
if this is not work for you download it from this link https://dart.dev/tools/sdk/archive; and replace it with your current dart-sdk in flutter
Comments
-
ninexus over 1 year
flutter app was working getting build and run on Xcode 10 on device iOS 12 fine before,
The time dart upgrade
2.1.0
happen in Flutter build iOS worked well with command and on Xcode 10 after build get success while running Flutter app on iPhone 7 iOS 12, it started giving error and app gets crash with following error message in Xcode logs.Error is Runner[410:28754] [VERBOSE-3:dart_vm.cc(403)] Error while initializing the Dart VM: Wrong full snapshot version, expected '8343f188ada07642f47c56e518f1307c' found '46b2bfb57b5647c5f7527ff9aa56c69b'
Here are the details of the flutter sdk and dart .
Flutter 0.11.9 • channel beta • https://github.com/flutter/flutter.git Framework • revision d48e6e4 Engine • revision 5c8147450d Tools • Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
-
Ricardo Smania about 5 yearsYou are a genius. I have been struggling with this problem for several days, and all solutions involved manipulating the Flutter repository somehow, you were the first one that indicated that the problem could be on the device. I uninstalled the app and now everything works great. Too bad I can only vote once, thanks so much for this!
-
ninexus almost 4 yearsI had to do the same , only than it resolved, it was tough task had at one level thought to leave flutter
-
ninexus over 2 yearsI also had to do the same
-
midNight over 2 yearsAfter struggling with this issue for 2 days. Only this comment solved it for me
-
midNight over 2 yearsthanks a lot @prajeet Naga!