我已经更新到最新的 flutter 更新了。当我想启动项目时,它返回一个错误。该项目依赖于几个存储库,我不知道这是否是原因。我尝试了多种解决方案,但都没有解决该错误。希望可以有人帮帮我。谢谢。
\n\n编译器消息:
\n\n/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/mvvm-0.1.7/lib/view_context_helpers/logical.dart:151:25: Error: The function expression type 'Widget Function(BuildContext, Null, Widget) Function(TValue)' isn't of expected type 'Widget Function(BuildContext, TValue, Widget) Function(TValue)'.\n\n - 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').\n - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').\nChange the type of the function expression or the context in which it is used.\n selector: (TValue value) =>\n ^\nTarget kernel_snapshot failed: Exception: Errors during snapshot creation: null\nbuild failed.\n\nFAILURE: Build failed with an exception.\n\n* Where:\nScript 'C:\\src\\flutter\\packages\\flutter_tools\\gradle\\flutter.gradle' line: 780\n\n* What went wrong:\nExecution failed for task ':app:compileFlutterBuildDebug'.\n> Process 'command 'C:\\src\\flutter\\bin\\flutter.bat'' finished with non-zero exit value 1\n\n* Try:\nRun 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.\n\n* Get more help at https://help.gradle.org\n\nBU\xef\xbf\xbdLD FAILED in 31s\nFinished with error: Gradle task assembleDebug failed with exit code 1\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
36104 次 |
| 最近记录: |