Flutter app Error while initializing the Dart VM: Wrong full snapshot version, expected '8343…' found '46b2…'

好久不见. 提交于 2020-08-05 04:12:05

问题


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)


回答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.




回答2:


I had this issue after a flutter upgrade. Uninstalling the app from the device and then flutter running it again solved the problem.




回答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.




回答4:


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




回答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



来源:https://stackoverflow.com/questions/53431517/flutter-app-error-while-initializing-the-dart-vm-wrong-full-snapshot-version-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!