运行 flutter pub get 报错
/Users/huangzengsong/flutter/bin/flutter --no-color pub get Running "flutter pub get" in untitled... The current Dart SDK version is 2.19.0-146.2.beta. Because untitled depends on json_serializable >=6.6.2 which requires SDK version >=2.19.0 <3.0.0 or >=3.0.0 <4.0.0, version solving failed. pub get failed command: "/Users/huangzengsong/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --verbosity=warning get --no-precompile" pub env: { "FLUTTER_ROOT": "/Users/huangzengsong/flutter", "PUB_ENVIRONMENT": "flutter_cli:get", "PUB_CACHE": "/Users/huangzengsong/.pub-cache", } exit code: 1 last line of pub output: "Because untitled depends on json_serializable >=6.6.2 which requires SDK version >=2.19.0 <3.0.0 or >=3.0.0 <4.0.0, version solving failed."
解决方式
切换master分支,升级flutter,flutter 里有默认的 dart sdk
https://cloud.tencent.com/developer/ask/sof/1259934/answer/1744661
flutter channel master flutter upgrade
标签:get,Dart,version,2.19,flutter,SDK From: https://www.cnblogs.com/huangzs/p/17572982.html