-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The method 'DioHttpHeaders.add' has fewer named arguments than those of overridden method 'HttpHeaders.add'. #780
Comments
I also meet this problem. Updating Dio to 3.0.9 and Dart to 2.8.1(stable) solved this problem. Of course, don't forget to modify your code to clean build error. And then, you can run flutter build xxxx. |
Updating the version to 3.0.9 solved the problem. |
when we use dio:2.1.13. |
Updating the version to 3.0.9. This worked for me. |
what version 3.0.9 please help me ----- /B:/flutter_windows_1.17.3-stable/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'. |
@devendra1988 In your pubspec.yaml , update the version of dio package to 3.0.9 |
Tha ks dear
…On Fri, Jun 19, 2020, 2:56 PM Taha Ali ***@***.***> wrote:
@devendra1988 <https://github.com/devendra1988> In your pubspec.yaml ,
update the version of dio package to 3.0.9
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#780 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGC6VAWILGHRDJLQKNLQKW3RXMVLZANCNFSM4M6EBTLA>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
Hello, lib / main.dart: 66: 45: Error: Method not found: 'uploadFileInfo'. |
Hi, |
i have the same issues |
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:55:8: Error: The method 'DioHttpHeaders.add' has fewer named arguments than those of overridden method 'HttpHeaders.add'.
void add(String name, value) {
^
org-dartlang-sdk:///dart-sdk/lib/_http/http.dart: Context: This is the overridden method ('add').
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {
^
org-dartlang-sdk:///dart-sdk/lib/_http/http.dart: Context: This is the overridden method ('set').
Same here. Fresh flutter, fresh dio. Reopen this issue please |
New Issue Checklist
I have searched a similar issue, and found only a closed one, so I preferred to start a new one
Platform Name - Flutter
Platform Version - Flutter 1.17.0
Dio Version - Tested with 2.0.22 and 3.0.9
Android Studio Version - Tested with 3.5.1 and 3.5.3
Repro rate - 100%
Repro with demo proj : Cannot launch Demo proj, but from a different error
Demo Project Link : https://drive.google.com/file/d/1PO88kXPPSi_mY5wGJJW6NRq-AfLYqI-p/view?usp=sharing
Issue Description and Steps
In Dio Example, the following error pops, cannot test for mine
D:\downloads\dio-3.0.9\example\flutter_example\android\app\src\debug\AndroidManifest.xml Error:
In my program (Demo Project), following error pops :
Compiler message:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:703:8: Context: This is the overridden method ('set').
void set(String name, Object value,
^
The text was updated successfully, but these errors were encountered: