我升级了Flutter SDK,但现在我的项目出了问题。我需要回退到使用Dart 1.x的Flutter SDK。
我尝试了在pubspec.yaml文件中进行以下更改:
environment:
sdk: ">=1.19.0 <2.0.0"
flutter: "^0.1.2"
dependencies:
flutter:
sdk: flutter
但现在这个项目根本就不能成功构建。
Running "flutter packages get" in binformed...
Package binformed requires Flutter SDK version ^0.1.2 but the current SDK is 0.2.5-pre.38.
pub get failed (1)
我需要卸载SDK并重新安装吗?
brew
的MacOSX上使用flutter有效:cd $(dirname $(readlink -f $(which flutter))) && git checkout 3.3.4
- Xamrix