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

Issue when attempting to run the project - error message below #36

Closed
Maxwh21 opened this issue Feb 8, 2023 · 1 comment
Closed

Issue when attempting to run the project - error message below #36

Maxwh21 opened this issue Feb 8, 2023 · 1 comment

Comments

@Maxwh21
Copy link

Maxwh21 commented Feb 8, 2023

/C:/Users/MaxW/AppData/Local/Pub/Cache/hosted/pub.dev/fluro-2.0.3/lib/src/fluro_router.dart:134:37: Error: The method 'copyWith' isn't defined for the class 'RouteSettings'.

  • 'RouteSettings' is from 'package:flutter/src/widgets/navigator.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/navigator.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'copyWith'.
    settingsToUse = settingsToUse.copyWith(name: path);
    ^^^^^^^^
    Target kernel_snapshot failed: Exception

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151

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

Process 'command 'C:\src\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.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • 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 28s
Exception: Gradle task assembleDebug failed with exit code 1

@Maxwh21
Copy link
Author

Maxwh21 commented Feb 8, 2023

This was resolved by me deleting the pubspec.lock file and clicking pub get on the pubspec.yaml file

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