Advertisement
AndershowAndre

Error in launch thingsboard mobile application

Jun 26th, 2023
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.88 KB | Source Code | 0 0
  1. Launching lib/main.dart on AOSP on IA Emulator in debug mode...
  2. main.dart:1
  3. : Error: The method 'PageMetrics.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'Object with ScrollMetrics.copyWith'.
  4. preload_page_view.dart:179
  5.  PageMetrics copyWith({
  6.              ^
  7. : Context: This is the overridden method ('copyWith').
  8. scroll_metrics.dart:138
  9. class FixedScrollMetrics with ScrollMetrics {
  10.      ^
  11. : Error: The method '_PagePosition.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'ViewportOffset with ScrollMetrics.copyWith'.
  12. preload_page_view.dart:302
  13.   PageMetrics copyWith({
  14.               ^
  15. : Context: This is the overridden method ('copyWith').
  16. scroll_position.dart:92
  17. abstract class ScrollPosition extends ViewportOffset with ScrollMetrics {
  18.                ^
  19. : Error: Required named parameter 'devicePixelRatio' must be provided.
  20. preload_page_view.dart:170
  21.   }) : super(
  22.             ^
  23. : Error: The method 'copyWith' isn't defined for the class 'RouteSettings'.
  24. fluro_router.dart:134
  25.  
  26. - 'RouteSettings' is from 'package:flutter/src/widgets/navigator.dart' ('../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/navigator.dart').
  27. navigator.dart:1
  28. Try correcting the name to the name of an existing method, or defining a method named 'copyWith'.
  29.      settingsToUse = settingsToUse.copyWith(name: path);
  30.                                    ^^^^^^^^
  31. Target kernel_snapshot failed: Exception
  32. 2
  33.  
  34. FAILURE: Build completed with 2 failures.
  35.  
  36. 1: Task failed with an exception.
  37. -----------
  38. * Where:
  39. Script '/home/anderson/snap/flutter/common/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1201
  40.  
  41. * What went wrong:
  42. Execution failed for task ':app:compileFlutterBuildDebug'.
  43. > Process 'command '/home/anderson/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1
  44.  
  45. * Try:
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement