flutter pub get显示错误:
/Users/sony/development/flutter/bin/flutter --no-color pub get
在 bedrive-flutter 中运行“flutter pub get”...
警告:您正在使用这些覆盖的依赖项:
! device_info_plus 8.2.2(10.0.1 可用)
!菲2.1.2
在 bedrive-flutter 中运行“flutter pub get”... 5.6s
进程已完成,退出代码为 0
在 Android 上运行该应用程序会导致以下错误:
在调试模式下在 sdk gphone64 arm64 上启动 lib/main.dart... 运行 Gradle 任务“assembleDebug”... ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/ffi.dart:1:1:错误:指定的语言版本太高的。支持的最高语言版本是 2.18。 // 版权所有 (c) 2019,Dart 项目作者。请参阅作者文件
^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/allocation.dart:1:1:错误:指定的语言版本太高了。支持的最高语言版本是 2.18。 // 版权所有 (c) 2019,Dart 项目作者。请参阅作者文件
^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/allocation.dart:48:1:错误:不能有此处修饰符“最终”。 尝试删除“最终”。
最终类 MallocAllocator 实现 Allocator { ^^^^^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/allocation.dart:134:1:错误:不能有此处修饰符“最终”。 尝试删除“最终”。
最终类 CallocAllocator 实现 Allocator { ^^^^^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/arena.dart:1:1:错误:指定的语言版本太高了。支持的最高语言版本是 2.18。 // 版权所有 (c) 2019,Dart 项目作者。请参阅作者文件
^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/utf8.dart:1:1:错误:指定的语言版本太高了。支持的最高语言版本是 2.18。 // 版权所有 (c) 2019,Dart 项目作者。请参阅作者文件
^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/utf8.dart:16:1:错误:不能有此处修饰符“最终”。 尝试删除“最终”。 最终类 Utf8 扩展了 Opaque {}
^^^^^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/utf16.dart:1:1:错误:指定的语言版本太高了。支持的最高语言版本是 2.18。 // 版权所有 (c) 2019,Dart 项目作者。请参阅作者文件
^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/utf16.dart:16:1:错误:不能有此处修饰符“最终”。 尝试删除“最终”。 最终类 Utf16 扩展了 Opaque {}
^^^^^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-2.1.2/lib/src/utf16.dart:59:31:错误:运算符“+” ' 没有为“Pointer”类定义。
FAILURE:构建失败并出现异常。
地点: 脚本'/Users/sony/development/flutter/packages/flutter_tools/gradle/flutter.gradle'行:1159
出了什么问题: 任务“:app:compileFlutterBuildDebug”执行失败。
处理'命令'/Users/sony/development/flutter/bin/flutter''以非零退出值1完成
使用 --stacktrace 选项运行以获取堆栈跟踪。 使用 --info 或 --debug 选项运行以获得更多日志输出。 使用 --scan 运行以获得完整的见解。
11秒内构建失败 异常:Gradle 任务 assembleDebug 失败,退出代码为 1
考虑将软件包与 flutter 一起更新到最新版本