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

Compiler error on sticky_header_layout_builder.dart . Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'. #20

Open
pablohga opened this issue May 25, 2020 · 1 comment

Comments

@pablohga
Copy link

flutter run --release
Launching lib\main.dart on POT LX1 in release mode...
[!] Your app isn't using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the steps on
https://goo.gl/CP92wY.

Compiler message:
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    context: context);
    ^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

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

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

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.

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

BUILD FAILED in 20s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 22,7s
Gradle task assembleRelease failed with exit code 1

C:\delivery_flutter\rapidinho (master -> origin)
λ flutter run --release
Launching lib\main.dart on POT LX1 in release mode...

Compiler message:
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    context: context);
    ^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

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

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

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.

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

BUILD FAILED in 1m 21s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 87,6s
Gradle task assembleRelease failed with exit code 1

@usamaaelgendy
Copy link

pubspec.yaml

change dependencies to

flutter:
sdk: flutter
flutter_redux: ^0.6.0
shimmer: ^1.1.1
google_maps_webservice: ^0.0.17
sqflite: ^1.3.1
path_provider: ^1.6.11
flutter_sticky_header: ^0.4.2
cloud_firestore: ^0.13.7
google_maps_flutter: ^0.5.28+1
cupertino_icons: ^0.1.2

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