Skip to content

dartlang:http_impl make crash when flutter run / flutter 1.22 / dart 2.10 #43688

Closed
@whatamelon

Description

@whatamelon

I don't know if it's right to put it up here. But actually this issue related withdartlang. So, I just create issue in here.

After upgrade to 1.22 flutter sdk. And flutter run. It return this error.

Launching lib/main.dart on LGM V300L in debug mode...
../../../flutter/.pub-cache/hosted/pub.dartlang.org/io_http-0.1.0+2/lib/src/http_impl.dart:1102:7: Error: The non-abstract class '_HttpClientRequest' is missing implementations for these members:

  • HttpClientRequest.abort
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class _HttpClientRequest extends _HttpOutboundMessage implements HttpClientRequest {
^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:2045:8: Context: 'HttpClientRequest.abort' is defined here.
void abort([Object? exception, StackTrace? stackTrace]);
^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/denny/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 904

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

Process 'command '/Users/denny/flutter/bin/flutter'' 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 54s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 115.1s
Exception: Gradle task assembleDebug failed with exit code 1


flutter doctor.

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.6 19G2021, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.49.0)
[✓] Connected device (1 available)

• No issues found!

dart version is 2.10

Always thanks for dart lang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-as-intendedClosed as the reported issue is expected behaviorlibrary-iotype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions