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

New to flutter, #16

Open
Deanfei opened this issue Aug 16, 2020 · 4 comments
Open

New to flutter, #16

Deanfei opened this issue Aug 16, 2020 · 4 comments

Comments

@Deanfei
Copy link

Deanfei commented Aug 16, 2020

Launching lib\main.dart in debug mode...
Checking the license for package Android SDK Platform 29 in C:\Users\yangl\AppData\Local\Android\sdk\licenses
License for package Android SDK Platform 29 accepted.
Preparing "Install Android SDK Platform 29 (revision: 5)".
"Install Android SDK Platform 29 (revision: 5)" ready.
Installing Android SDK Platform 29 in C:\Users\yangl\AppData\Local\Android\sdk\platforms\android-29
"Install Android SDK Platform 29 (revision: 5)" complete.
"Install Android SDK Platform 29 (revision: 5)" finished.
/C:/src/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:///third_party/dart/sdk/lib/_http/http.dart:699:8: Context: This is the overridden method ('add').
void add(String name, Object value,
^
/C:/src/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:708:8: Context: This is the overridden method ('set').
void set(String name, Object value,
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:92:3: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
PictureStream();
^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:192:16: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
abstract class PictureStreamCompleter extends Diagnosticable {
^

FAILURE: Build failed with an exception.

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

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

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 3m 45s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

@asjqkkkk
Copy link
Owner

can you provider you flutter enviroment?

@asjqkkkk
Copy link
Owner

Hi, pull the last code in master, this issue will be solved

@Deanfei
Copy link
Author

Deanfei commented Aug 31, 2020 via email

@asjqkkkk
Copy link
Owner

asjqkkkk commented Sep 1, 2020

Hi there, Thanks for the response. Are you meaning pulling the latest code? And the issue has been fixed or will be fixed in the future? Thanks

On Tue, 1 Sep 2020 at 02:40, 安卓小哥 @.***> wrote: Hi, pull the last code in master, this issue will be solved — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#16 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHD3GMYXVH2S7DPDE76VJWDSDOY4VANCNFSM4QARTTKA .

yes, this has been fixed by last commit

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