更新后无法构建flutter应用程序

b0zn9rqh  于 2023-03-03  发布在  Flutter
关注(0)|答案(1)|浏览(255)

我无法使用以下环境构建Flutter应用程序

environment:
  sdk: '>=2.18.5 <3.0.0'

我正在获取以下错误

Error output from Xcode build:
    error: the following command failed with exit code 0 but produced no further output
    error: the following command failed with exit code 0 but produced no further output
: Error: Type 'EditableTextContextMenuBuilder' not found.
text_field.dart:558
: Error: Method 'insert' cannot be called on 'OverlayState?' because it is potentially null.
search_field.dart:244
: Error: Undefined name 'CupertinoAdaptiveTextSelectionToolbar'.
text_field.dart:442
: Error: 'EditableTextContextMenuBuilder' isn't a type.
text_field.dart:558
: Error: 'EditableTextContextMenuBuilder' isn't a type.
text_field.dart:870
: Error: No named parameter with the name 'contextMenuBuilder'.
text_field.dart:1395
: Error: A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' because 'OverlayState?' is nullable and 'OverlayState' isn't.
tooltip.dart:170
: Error: Method 'writeState' cannot be called on 'PageStorageBucket?' because it is potentially null.
hwamh0ep

hwamh0ep1#

我在使用dropdown_search软件包时遇到了同样的问题
我做了什么?
通过flutter upgrade --force升级Flutter
运行此命令

flutter --version

如果您的版本低于3.3.10,则应升级。
我来解决;)
(If上帝的旨意)

相关问题