Error: The non-abstract class 'StethoHttpClientResponse' is missing implementations for these members: - HttpClientResponse.compressionState
zxcfer opened this issue · 1 comments
zxcfer commented
Launching lib\config\main_development.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDevelopmentDebug'...
Compiler message:
file:///C:/bin/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_stetho-0.2.2/lib/src/http_client_response.dart:4:7: Error: The non-abstract class 'StethoHttpClientResponse' is missing implementations for these members:
- HttpClientResponse.compressionState
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 StethoHttpClientResponse extends StreamView<List<int>>
^^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1967:42: Context: 'HttpClientResponse.compressionState' is defined here.
HttpClientResponseCompressionState get compressionState;
^^^^^^^^^^^^^^^^
Compiler failed on C:\dev\flutter_starter_kit\lib\config\main_development.dart
FAILURE: Build failed with an exception.
* Where:
Script 'C:\bin\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 665
* What went wrong:
Execution failed for task ':app:compileflutterBuildDevelopmentDebugX86'.
> Process 'command 'C:\bin\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 26s
Finished with error: Gradle task assembleDevelopmentDebug failed with exit code 1
KingWu commented
What is your flutter version & Dart version?
Tried to upgrade flutter_stetho to fix it?
Add flutter_stetho to your dependencies in the pubspec.yaml file
For Flutter 1.7.x with Dart 2.4, use version 0.3.0
For Flutter 1.8.x+ with Dart 2.5, use version 0.4.0 or higher