flutter/packages/flutter_tools/gradle/flutter. gradle '错误

q8l4jmvw  于 2023-06-24  发布在  Flutter
关注(0)|答案(1)|浏览(258)

我在运行应用程序时遇到了问题。在它使用之前,突然开始显示编译错误。
Flutter版本:3.8.1
Dart版本:3.8.1

编译器消息:

/C:/flutter_windows_v1.12.13+hotfix.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flushbar- 
1.9.1/lib/flushbar_route.dart:273:8: Error: The method 'FlushbarRoute.install' has more required 
arguments than those of overridden method 'OverlayRoute.install'.

void install(OverlayEntry insertionPoint) {
   ^
/C:/flutter_windows_v1.12.13+hotfix.5- 
stable/flutter/packages/flutter/lib/src/widgets/routes.dart:40:8: Context: This is the overridden 
method ('install').

void install() {
   ^
/C:/flutter_windows_v1.12.13+hotfix.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flushbar- 
1.9.1/lib/flushbar_route.dart:281:18: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
super.install(insertionPoint);

强文本

n7taea2i

n7taea2i1#

这个问题似乎是由flushbar插件引起的。您可以降级到以前的工作版本,也可以升级到1.9.1,据报道该版本修复了该问题。

相关问题