Replies: 2 comments
-
This issue is likely due to an outdated Flutter version in your local development environment. You should downgrade your local Flutter version to match the Dart SDK version used in Codemagic, which is 2.19.6 according to the error message.
After downgrading, re-run your build in Codemagic. This should resolve the version mismatch and allow your build to succeed. |
Beta Was this translation helpful? Give feedback.
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently updated my local Flutter version to the latest stable release (3.10.0) and specified "flutter: stable" in the codemagic.yaml file. However, when I attempt to build my application via Codemagic, I encounter a Dart SDK version mismatch error.
The error message indicates that my project, requires a Dart SDK version of >=3.0.0, but the current Dart SDK version installed in the Codemagic environment is 2.19.6. This discrepancy is causing the build to fail as Flutter is unable to resolve dependencies.
Has anyone else encountered a similar issue? How can I ensure that Codemagic uses the correct Dart SDK version that aligns with my Flutter project's requirements? Any suggestions or best practices to avoid such version mismatches in the future would be highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions