Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i have an error #1

Open
Baazzith opened this issue Mar 17, 2024 · 1 comment
Open

i have an error #1

Baazzith opened this issue Mar 17, 2024 · 1 comment

Comments

@Baazzith
Copy link

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

../../.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.3/lib/src/leak_testing.dart:146:9: Error: No named parameter with the name 'notGCed'.
notGCed: ignoredLeaks.notGCed.merge(
^^^^^^^
../../.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/lib/src/leak_tracking/primitives/model.dart:130:9: Context: Found this candidate, but the arguments don't match.
const IgnoredLeaks({
^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.3/lib/src/leak_testing.dart:193:9: Error: No named parameter with the name 'notGCed'.
notGCed: newNotGCed,
^^^^^^^
../../.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/lib/src/leak_tracking/primitives/model.dart:130:9: Context: Found this candidate, but the arguments don't match.
const IgnoredLeaks({
^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/leak_tracker_testing-2.0.3/lib/src/leak_testing.dart:180:35: Error: The getter 'notGCed' isn't defined for the class 'IgnoredLeaks'.

  • 'IgnoredLeaks' is from 'package:leak_tracker/src/leak_tracking/primitives/model.dart' ('../../.pub-cache/hosted/pub.dev/leak_tracker-10.0.4/lib/src/leak_tracking/primitives/model.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'notGCed'.
    var newNotGCed = ignoredLeaks.notGCed.track([...notGCed, ...classes]);
    ^^^^^^^
    Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/baazzith/development/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1419

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/baazzith/development/flutter/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.

BUILD FAILED in 39s
Running Gradle task 'assembleDebug'... 40.1s
Error: Gradle task assembleDebug failed with exit code 1

@a-3isa
Copy link

a-3isa commented Mar 22, 2024

follow the instruction in this link
[https://flutter.dev/go/flutter-gradle-plugin-apply]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants