Skip to content

1.1.6无法运行 #27

@rongxianyu

Description

@rongxianyu

Flutter 版本3.27.4,接入flutter_graph_view后无法运行,报错如下:

../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_graph_view-1.1.6/lib/widgets/graph_component.dart:56:20: Error: The method 'clear' isn't defined for the class 'ReadOnlyOrderedSet<Component>'.
 - 'ReadOnlyOrderedSet' is from 'package:ordered_set/read_only_ordered_set.dart' ('../../../.pub-cache/hosted/pub.flutter-io.cn/ordered_set-8.0.0/lib/read_only_ordered_set.dart').
 - 'Component' is from 'package:flame/src/components/core/component.dart' ('../../../.pub-cache/hosted/pub.flutter-io.cn/flame-1.29.0/lib/src/components/core/component.dart').
Try correcting the name to the name of an existing method, or defining a method named 'clear'.
    world.children.clear();
                   ^^^^^
Target kernel_snapshot_program failed: Exception
2

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildBetaDebug'.
> Process 'command '/Users/idea/fvm/versions/3.27.4/bin/flutter'' 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 26s
Error: Gradle task assembleBetaDebug failed with exit code 1

Exited (1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions