我运行项目,不编辑任何东西,然后它会抛出这个异常
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/getwidget-2.0.5/lib/components/animation/gf_animation.dart:244:28: Error: Required named parameter 'vsync' must be provided.
child: AnimatedSize(
^
/C:/src/flutter/packages/flutter/lib/src/widgets/animated_size.dart:56:9: Context: Found this candidate, but the arguments don't match.
const AnimatedSize({
^^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 32s
Exception: Gradle task assembleDebug failed with exit code 1如何修复此错误以运行项目,请帮助我,谢谢
发布于 2022-03-08 14:42:31
您正在使用的动画包破坏了构建,我建议您恢复到包的上一次工作更新,大多数包在转移到空安全后会出现此错误。
有些东西被遗漏了,最终导致应用程序中断,所以请转到上一次工作更新,然后在存储库中提出一个问题。
https://stackoverflow.com/questions/71396578
复制相似问题