【发布时间】:2020-11-20 17:18:04
【问题描述】:
切换到分支“稳定”颤振通道后
以下是构建问题。
错误:指定的语言版本太高。支持的最高语言版本是 2.8。
output: ../../third_party/dart/third_party/pkg/collection/lib/src/utils.dart:1:1: Error: The specified language version is too high. The highest supported language version is 2.8.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
^
../../third_party/dart/third_party/pkg/collection/lib/src/wrappers.dart:1:1: Error: The specified language version is too high. The highest supported language version is 2.8.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
^
../../third_party/dart/third_party/pkg/collection/lib/src/functions.dart:1:1: Error: The specified language version is too high. The highest supported language version is 2.8.
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
^
【问题讨论】:
-
将错误消息和您的问题直接发布到正文中。此外,分享您的
pubspec.yaml。 -
我将 pubspec.yaml 添加为图像
-
使用提供的格式化工具将错误消息和您的问题直接发布到您的问题正文中,并分享
flutter channel的输出。 -
我遇到了同样的问题。只需使用“flutter clean”,然后使用“flutter run”命令,所有问题都会自动解决。
-
我已经投票决定重新打开它——虽然它似乎是一个特定的配置问题,但这个错误可能来自更一般的 Flutter 通道被搞砸的情况。如果我可以添加一个答案,那就是执行以下操作(这只是为我解决了这个问题):1.
flutter --version#检查版本,2.flutter channel stable,3.flutter upgrade
标签: android-studio flutter dart version flutter-channel