Flutter 在最新的颤振升级后-项目未构建
在所有项目中,在构建时-面对此错误。在颤振升级之后,我面临这个错误。我已经尝试了所有升级和失效缓存和所有-但当我运行该项目时发现此异常Flutter 在最新的颤振升级后-项目未构建,flutter,dart,flutter-animation,dart-sdk,Flutter,Dart,Flutter Animation,Dart Sdk,在所有项目中,在构建时-面对此错误。在颤振升级之后,我面临这个错误。我已经尝试了所有升级和失效缓存和所有-但当我运行该项目时发现此异常 [+37924 ms] Compiler message: [ +6 ms] /D:/FlutterSDK/flutter_windows_v1.5.4-hotfix.2-stable/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.7.2/lib/src/ge
[+37924 ms]
Compiler message:
[ +6 ms] /D:/FlutterSDK/flutter_windows_v1.5.4-hotfix.2-stable/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.7.2/lib/src/gesture/extended_image_slide_page_route.dart:333:9: Error: No named parameter with the name 'animation'.
[ +1 ms] animation: animation,
[ +1 ms] ^^^^^^^^^
[ ] /D:/FlutterSDK/flutter_windows_v1.5.4-hotfix.2-stable/flutter/packages/flutter/lib/src/cupertino/route.dart:435:3: Context: Found this candidate, but the arguments don't match.
[ ] CupertinoFullscreenDialogTransition({
[ +1 ms] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[+96166 ms] Compiler message:
[ ] /D:/FlutterSDK/flutter_windows_v1.5.4-hotfix.2-stable/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.7.2/lib/src/gesture/extended_image_slide_page_route.dart:333:9: Error: No named parameter with the name 'animation'.
[ ] animation: animation,
[ ] ^^^^^^^^^
[ ] /D:/FlutterSDK/flutter_windows_v1.5.4-hotfix.2-stable/flutter/packages/flutter/lib/src/cupertino/route.dart:435:3: Context: Found this candidate, but the arguments don't match.
[ ] CupertinoFullscreenDialogTransition({
[ ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[+13876 ms] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[ +1 ms] build failed.
[ +618 ms] FAILURE: Build failed with an exception.
[ +14 ms] * Where:
[ ] Script 'D:\FlutterSDK\flutter_windows_v1.5.4-hotfix.2-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 883
[ ] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildDebug'.
[ ] > Process 'command 'D:\FlutterSDK\flutter_windows_v1.5.4-hotfix.2-stable\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 2m 28s
动画
参数被拆分并重命名为。因为显然没有使用CupertinoFullscreenDialogTransition
的现有测试,所以该更改没有破坏任何测试,也没有被视为破坏性更改。@jamesdlin,好的,我知道了,我也在期待同样的更改-但是如何在我不知道的拉取请求中找到此类信息。如何解决这个问题?我需要做什么呢?从错误:没有名为“animation”的命名参数。
错误消息中,很明显CupertinoFullscreenDialogTransition
构造函数参数已更改。在那里,我搜索了flatter
git存储库,查找实现CupertinoFullscreenDialogTransition
的位置,运行git dull
查看是什么提交修改了参数,并查看其提交描述以查找引用的请求。您能否告诉我们您在项目中的pubspec.yaml文件中使用的哪些包/插件存在相同的问题,此修复我的项目: