我已经尝试了我能找到的大多数东西,但都不能修复这个错误。我所有的包裹好像都有问题。代码可以编译并在android上运行。当我尝试用Xcode编译代码时,当它到达firebase_auth时就停止了。flutter版本是1.22.6,我已经在设备上将开发目标设置为10。我得到的问题是所有的东西,我可以向上滚动直到它达到最大计数。
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:2052:7: Error: Can't assign to the final variable 'childrenInHitTestOrder'.
childrenInHitTestOrder = _kEmptyChildList;
^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:2056:7: Error: Can't assign to the final variable 'childrenInTraversalOrder'.
childrenInTraversalOrder = Int32List(childCount);
^^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:2062:7: Error: Can't assign to the final variable 'childrenInHitTestOrder'.
childrenInHitTestOrder = Int32List(childCount);
^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3653:47: Error: Getter not found: 'isSlider'.
bool get isSlider => _hasFlag(SemanticsFlag.isSlider);
^^^^^^^^
../../flutter/packages/flutter/lib/src/semantics/semantics.dart:3655:28: Error: Getter not found: 'isSlider'.
_setFlag(SemanticsFlag.isSlider, value);
^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on Benjamin’s 添加了更多的错误,这与我的本地化有关。但我添加了所有内容,就像操作指南中所说的那样,为iOS添加本地化。当我尝试添加不可为空的部分时,它会破坏我已经编写的代码,因为我没有为此编写代码。
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1382:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelMany => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1385:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelOne => 'sat';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1391:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelTwo => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1394:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerHourLabelZero => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1397:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelFew => 'min.';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1400:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelMany => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1403:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelOne => 'min.';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1409:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelTwo => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1412:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerMinuteLabelZero => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1415:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerSecondLabelFew => 'sec.';
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1418:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.
String? get timerPickerSecondLabelMany => null;
^
../../flutter/packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart:1421:9: Error: This requires the null safety language feature, which is experimental and requires language version of 2.10 or higher.
You can enable the experiment using the '--enable-experiment=non-nullable' command line option.发布于 2021-03-12 20:29:35
现在它起作用了,我所做的是删除了flutter,重新下载了相同的版本。已编译,现在已安装在设备上。
https://stackoverflow.com/questions/66584216
复制相似问题