Skip to content

Commit bc4975a

Browse files
committed
doc: Add "Dart SDK version" troubleshooting entry
A couple of people have had this confusion in the past week, so let's write down more about it.
1 parent c969eae commit bc4975a

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ see our [full setup guide](docs/setup.md).
120120
We use the latest Flutter from Flutter's main branch.
121121
Use `flutter channel main` and `flutter upgrade`.
122122

123-
We don't pin a specific version, because Flutter itself doesn't offer
124-
a way to do so. So far that hasn't been a problem. When it becomes one,
123+
Because each version of Flutter provides its own version of the
124+
Dart SDK, this also means we use the latest Dart SDK.
125+
126+
We don't pin a specific Flutter version,
127+
because Flutter itself doesn't offer a way to do so.
128+
So far that hasn't been a problem. When it becomes one,
125129
we'll figure it out; there are several tools for this in the Flutter
126130
community. See [issue #15][].
127131

docs/setup.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,32 @@ To set up the development environment on Linux without Android Studio:
8888

8989
## Troubleshooting
9090

91+
<div id="dart-sdk" />
92+
93+
### Dart SDK version
94+
95+
You might see an error message about the Dart SDK version,
96+
like so:
97+
```
98+
$ flutter pub get
99+
Resolving dependencies...
100+
The current Dart SDK version is 3.6.0-216.1.beta.
101+
102+
Because zulip requires SDK version >=3.6.0-279.0.dev <4.0.0,
103+
version solving failed.
104+
Failed to update packages.
105+
```
106+
107+
This error message says your Dart SDK version is too old.
108+
Because Flutter provides its own Dart SDK,
109+
that means your Flutter version is too old.
110+
111+
To fix the issue, follow [our setup instructions][readme-setup]
112+
by running `flutter channel main` and `flutter upgrade`.
113+
114+
For previous discussion of this symptom, see
115+
[this chat thread](https://chat.zulip.org/#narrow/stream/516-mobile-dev-help/topic/setup.3A.20Dart.20SDK.20dev.20version/near/1831351).
116+
91117

92118
<div id="windows-modified-files" />
93119

0 commit comments

Comments
 (0)