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

Erro HTTP #3

Closed
rovannlinhalis opened this issue Jul 13, 2020 · 3 comments
Closed

Erro HTTP #3

rovannlinhalis opened this issue Jul 13, 2020 · 3 comments

Comments

@rovannlinhalis
Copy link

rovannlinhalis commented Jul 13, 2020

Hello,
i just executed
"flutter create wooExampleApp"
added "woocommerce: ^ 0.9.0" to the premises
and "import 'package: woocommerce / woocommerce.dart';" in main.dart
when I run "flutter run", I get the error:

Compiler message:                                                       
../../../flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.1/lib/http.dart:72:77: Error: Expected '}' before this.
          client.post(url, headers: headers, body: body, encoding: encoding);
                                                                            ^
../../../flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.1/lib/http.dart:70:9: Error: A value of type 'Set<Future<Response>>' can't be assigned to a variable of type 'Future<Response>'.
 - 'Set' is from 'dart:core'.
 - 'Future' is from 'dart:async'.                                       
 - 'Response' is from 'package:http/src/response.dart' ('../../../flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.1/lib/src/response.dart').
        {
        ^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
                                                                        
FAILURE: Build failed with an exception.
                                                                        
* Where:
Script 'C:\Dev\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Dev\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 54s

SDK:
environment:
sdk: ">=2.7.0 <3.0.0"

any help?

@RayOkaah
Copy link
Owner

Hey Thank you. I am unable to reproduce this currently. However just pushed version 0.9.5 with lots of performance improvements, you can try using that and let me know your feedback.

@rovannlinhalis
Copy link
Author

I believe that version 0.9.5 is not yet available for me, but thank you I will wait.

@RayOkaah
Copy link
Owner

You might want to check https://pub.dev/packages/woocommerce again.

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