flutter_thingsboard_pe_app icon indicating copy to clipboard operation
flutter_thingsboard_pe_app copied to clipboard

Issue when attempting to run the project - error message below

Open Maxwh21 opened this issue 1 year ago • 1 comments

/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. ==============================================================================

  • Get more help at https://help.gradle.org

BUILD FAILED in 28s Exception: Gradle task assembleDebug failed with exit code 1

Maxwh21 avatar Feb 08 '23 11:02 Maxwh21

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

Maxwh21 avatar Feb 08 '23 13:02 Maxwh21