Skip to content

Cannot build flutter_tools on Linux, Because flutter_tools depends on collection >=1.15.0-nnbd <1.15.0-nullsafety.2 which requires SDK version >=2.9.0-18.0 <=2.9.10, version solving failed. #62146

@jmagman

Description

@jmagman

AUGUST 7 UPDATE if you are experiencing this crash on dev release 1.21.0-1.0.pre, you can upgrade past it to a good dev tag via:

git pull
flutter --version

As of August 7, the latest dev tag is 1.21.0-7.0.pre:

Flutter 1.21.0-7.0.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision 5a6dfa35ca (4 days ago) • 2020-08-03 10:33:07 -0700
Engine • revision 083282e33b
Tools • Dart 2.10.0 (build 2.10.0-4.0.dev 365525432a)

UPDATE: This issue has been mitigated in the framework by rolling back the engine hash to an unaffected version. However, the latest engine build still has the wrong dart version: https://ci.chromium.org/p/flutter/builders/prod/Linux%20Host%20Engine/6083. I suspect we will have to delete the git caches of all the LUCI bots.


Building flutter tools is failing on linux
https://cirrus-ci.com/task/4955835350646784?command=setup#L337

flutter config --no-analytics
Downloading Dart SDK from Flutter engine dcc9a4048da890660f0880b4c2afed7c9470d335...
The current Dart SDK version is 2.10.0-0.0.dev.flutter-9dca49e71e.
Because flutter_tools depends on collection >=1.15.0-nnbd <1.15.0-nullsafety.2 which requires SDK version >=2.9.0-18.0 <=2.9.10, version solving failed.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Resolving dependencies...

Seeing this on Cirrus and devicelab. Windows and macOS is passing.

Metadata

Metadata

Labels

P0Critical issues such as a build break or regressionc: contributor-productivityTeam-specific productivity, code health, technical debt.dependency: dartDart team may need to help usteam-infraOwned by Infrastructure team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions