Reputation: 85
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)
Upvotes: 4
Views: 16124
Reputation: 497
My case: added flutter module as cocoapods, upgraded flutter but forgot to copy new Flutter.podspec.
Upvotes: 0
Reputation: 615
You don't need to uninstall the whole flutter and set environment path or anything else.
Just downgrade to any version by doing the below commands, suppose my current flutter version is v3.3.8 and I come across this issue then:
Go to flutter sdk-path in the command prompt and checkout to any branch you would like to switch for a moment, like v2.5.0. So,
By doing this you changed your repository from v3.3.8 to v2.5.0
git checkout v2.5.0
You can check previous flutter versions from here link
flutter downgrade v2.5.0
flutter upgrade
Upvotes: 0
Reputation: 233
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.
Upvotes: 1
Reputation: 17
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
Upvotes: 0
Reputation: 513
I had to remove the flutter SDK folder in my computer completely and redownload the latest one at https://flutter.dev/docs/get-started/install/macos
Then, I ran flutter doctor.
You can find where your flutter folder is by typing which flutter
in your terminal.
Upvotes: 0
Reputation:
What worked for me was changing channel and upgrading and then changing channel back and upgrading.
Upvotes: 0
Reputation: 254
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.
Upvotes: 4
Reputation: 22437
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
Upvotes: 2
Reputation: 287
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.
Upvotes: 1
Reputation: 3506
I had this issue after a flutter upgrade
. Uninstalling the app from the device and then flutter run
ning it again solved the problem.
Upvotes: 1