首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误:必须提供所需的命名参数“vsync”

错误:必须提供所需的命名参数“vsync”
EN

Stack Overflow用户
提问于 2022-03-08 14:23:16
回答 1查看 328关注 0票数 1

我运行项目,不编辑任何东西,然后它会抛出这个异常

代码语言:javascript
运行
复制
/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

如何修复此错误以运行项目,请帮助我,谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-03-08 14:42:31

您正在使用的动画包破坏了构建,我建议您恢复到包的上一次工作更新,大多数包在转移到空安全后会出现此错误。

有些东西被遗漏了,最终导致应用程序中断,所以请转到上一次工作更新,然后在存储库中提出一个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71396578

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档