closed
App run & Build error
Hello I purchased this app (flutter mighty store) all was working fine and after shifting it to another pc it stopped working after installing everything. It has a build error groovy in flutter sdk path. Help me this is UrgentĀ
Asked 2 years ago on August 20, 2023 9:44 PM Comments 5 times
Viktoria replied 2 years ago on August 21, 2023 10:45 AM
Hello Myco,
Anydesk automatically disconnected.
Thank you:)
Myco S. Kagame replied 2 years ago on August 21, 2023 10:09 AM
any desk: 1 363 220 501
Viktoria replied 2 years ago on August 21, 2023 10:06 AM
Hello
Please share anydesk so we can help you to resolve your issue.
Thank you:)
Myco S. Kagame replied 2 years ago on August 21, 2023 8:53 AM
Launching lib\main.dart on SM G998B in debug mode...
Running Gradle task 'assembleDebug'...
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:82:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'.
- 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/rendering/object.dart').
- 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/foundation/node.dart').
final AbstractNode? targetParent = renderObject.parent;
^
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:83:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'.
- 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/foundation/node.dart').
Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'.
if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement();
^^^^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:84:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'.
- 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/foundation/node.dart').
Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'.
if (targetParent is RenderObject) targetParent.markNeedsLayout();
^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:132:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'.
- 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/rendering/object.dart').
- 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/foundation/node.dart').
final AbstractNode? targetParent = renderObject.parent;
^
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:133:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'.
- 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/foundation/node.dart').
Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'.
if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement();
^^^^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:134:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'.
- 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('../../AppData/Local/Android/flutter/packages/flutter/lib/src/foundation/node.dart').
Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'.
if (targetParent is RenderObject) targetParent.markNeedsLayout();
^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\mycosoft\AppData\Local\Android\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1297
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\mycosoft\AppData\Local\Android\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.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 16s
Exception: Gradle task assembleDebug failed with exit code 1
ATTACHED FILES
Viktoria replied 2 years ago on August 20, 2023 11:45 PM
Hello
Please share the error log
Thank you