我无法使用以下环境构建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.
1条答案
按热度按时间hwamh0ep1#
我在使用dropdown_search软件包时遇到了同样的问题
我做了什么?
通过
flutter upgrade --force
升级Flutter运行此命令
如果您的版本低于3.3.10,则应升级。
我来解决;)
(If上帝的旨意)